Skip to content

Commit

Permalink
Reworked requests command
Browse files Browse the repository at this point in the history
  • Loading branch information
778b committed Nov 26, 2022
1 parent f204277 commit e110f2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public boolean execute(@NotNull CommandSender sender, @NotNull String commandLab
}

SenderClan.getPlayerClan().SendMessageForOnlinePlayers(
String.format("&6%s &2->&b %s",tempPlayer.getName() ,MegaString.toString()));
String.format("&6%s &2->&b%s",tempPlayer.getName() ,MegaString.toString()));
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,14 @@ else if (args[0].equalsIgnoreCase("requests")) {
return false;
}
if (SenderRole == ClanRole.LEADER || SenderRole == ClanRole.OFFICER) {
ChatSender.MessageTo(tempPlayer,"UselessClan", "######## CLAN REQUESTS ########");
for (String tempMemberName: SenderClan.getRequests()) {
ChatSender.MessageTo(tempPlayer,"UselessClan", String.format("# %s", tempMemberName));
if (SenderClan.getRequests().size() > 0) {
ChatSender.MessageTo(tempPlayer,"UselessClan", "######## CLAN REQUESTS ########");
for (String tempMemberName: SenderClan.getRequests()) {
ChatSender.MessageTo(tempPlayer,"UselessClan", String.format("# %s", tempMemberName));
}
}
else {
ChatSender.MessageTo(tempPlayer,"UselessClan", "0 requests for join to your clan");
}
}
else {
Expand Down

0 comments on commit e110f2a

Please sign in to comment.