- Fix ConcurrentModificationException caused by spies.
    - Closes https://github.com/TownyAdvanced/Towny/issues/4077
This commit is contained in:
Llm Dl committed 2020-06-12 14:36:16 -05:00
1 parent 1fe45712d4
commit ab55ed69c5
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit</groupId> <groupId>com.palmergames.bukkit</groupId>
<artifactId>TownyChat</artifactId> <artifactId>TownyChat</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>0.71</version> <version>0.72</version>
<licenses> <licenses>
<license> <license>
+3
View File
@@ -307,3 +307,6 @@ v0.70:
- Closes: https://github.com/TownyAdvanced/Towny/issues/2665 - Closes: https://github.com/TownyAdvanced/Towny/issues/2665
v0.71: v0.71:
- Bugfixes on the AsyncChatHookEvents, courtesy of Rebstew with PR #26. - Bugfixes on the AsyncChatHookEvents, courtesy of Rebstew with PR #26.
v0.72:
- Fix ConcurrentModificationException caused by spies.
- Closes https://github.com/TownyAdvanced/Towny/issues/4077
@@ -292,7 +292,7 @@ public class StandardChannel extends Channel {
// Remove spies who've already seen the message naturally. // Remove spies who've already seen the message naturally.
for (Player spy : spies) for (Player spy : spies)
if (recipients.contains(spy)) if (recipients.contains(spy))
spies.remove(spy); continue;
else else
spy.sendMessage(ChatColor.GOLD + "[SPY] " + ChatColor.WHITE + format + ": " + event.getMessage()); spy.sendMessage(ChatColor.GOLD + "[SPY] " + ChatColor.WHITE + format + ": " + event.getMessage());
} }