From 7139d0d49623b40a19092de10c9401fa23366d9c Mon Sep 17 00:00:00 2001 From: Warrior <50800980+Warriorrrr@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:51:33 +0200 Subject: [PATCH] Fix /deny all not working --- .../com/palmergames/bukkit/towny/command/InviteCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Towny/src/main/java/com/palmergames/bukkit/towny/command/InviteCommand.java b/Towny/src/main/java/com/palmergames/bukkit/towny/command/InviteCommand.java index f826388a6a..222465008f 100644 --- a/Towny/src/main/java/com/palmergames/bukkit/towny/command/InviteCommand.java +++ b/Towny/src/main/java/com/palmergames/bukkit/towny/command/InviteCommand.java @@ -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; }