- 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
+6 -3

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit</groupId>
<artifactId>TownyChat</artifactId>
<packaging>jar</packaging>
<version>0.71</version>
<version>0.72</version>
<licenses>
<license>
+4 -1
View File
@@ -306,4 +306,7 @@ v0.70:
- De-clutters the chat.
- Closes: https://github.com/TownyAdvanced/Towny/issues/2665
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.
for (Player spy : spies)
if (recipients.contains(spy))
spies.remove(spy);
continue;
else
spy.sendMessage(ChatColor.GOLD + "[SPY] " + ChatColor.WHITE + format + ": " + event.getMessage());
}