Skip to content

Commit

Permalink
Fix /deny all not working (#7626)
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr authored Oct 14, 2024
1 parent ce79201 commit f285f2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static void parseDeny(Player player, String[] args) {
// We cut the first argument out of it so /invite deny args[1]
// SO now args[0] is always the Town, we should check if the argument length is >= 1
if (args[0].equalsIgnoreCase("all")) {
denyAllInvites(invites);
denyAllInvites(new ArrayList<>(invites));
TownyMessaging.sendMsg(resident, Translatable.of("msg_player_denied_all_invites"));
return;
}
Expand Down

0 comments on commit f285f2c

Please sign in to comment.