- Fix event firing async.
  - Fix ranged global channels' chat being forwarded to dynmap.
This commit is contained in:
Llm Dl committed 2021-02-05 06:04:46 -06:00
1 parent c94342ca2b
commit f12fda4558
4 files changed
+13 -2

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.86</version>
<version>0.87</version>
<licenses>
<license>
+4 -1
View File
@@ -366,4 +366,7 @@ v0.85:
- Fix permission tests being done too early on PlayerJoin.
- Closes https://github.com/TownyAdvanced/Towny/issues/4615
v0.86:
- Fix firing PlayerJoinChatChannelEvent async.
- Fix firing PlayerJoinChatChannelEvent async.
v0.87:
- Fix event firing async.
- Fix ranged global channels' chat being forwarded to dynmap.
@@ -193,6 +193,11 @@ public class StandardChannel extends Channel {
case PRIVATE:
case GLOBAL:
// Don't broadcast local/ranged chat into dynmap.
if (super.getRange() > 0)
return;
DynmapAPI dynMap = plugin.getDynmap();
if (dynMap != null)
@@ -1,6 +1,8 @@
package com.palmergames.bukkit.TownyChat.events;
import com.palmergames.bukkit.TownyChat.channels.Channel;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
@@ -16,6 +18,7 @@ public class PlayerJoinChatChannelEvent extends Event {
private final Channel channel;
public PlayerJoinChatChannelEvent(Player player, Channel channel) {
super(!Bukkit.getServer().isPrimaryThread());
this.player = player;
this.channel = channel;
}