mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 06:28:57 +00:00
v0.72:
- Fix ConcurrentModificationException caused by spies.
- Closes https://github.com/TownyAdvanced/Towny/issues/4077
This commit is contained in:
1 parent
1fe45712d4
commit
ab55ed69c5
3 files changed
+6
-3
No files matched your search
@@ -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>
|
||||||
|
|||||||
@@ -306,4 +306,7 @@ v0.70:
|
|||||||
- De-clutters the chat.
|
- De-clutters the chat.
|
||||||
- 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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user