mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
v0.87:
- Fix event firing async. - Fix ranged global channels' chat being forwarded to dynmap.
This commit is contained in:
1 parent
c94342ca2b
commit
f12fda4558
4 files changed
+12
-1
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.86</version>
|
<version>0.87</version>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
|
|||||||
@@ -367,3 +367,6 @@ v0.85:
|
|||||||
- Closes https://github.com/TownyAdvanced/Towny/issues/4615
|
- Closes https://github.com/TownyAdvanced/Towny/issues/4615
|
||||||
v0.86:
|
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 PRIVATE:
|
||||||
case GLOBAL:
|
case GLOBAL:
|
||||||
|
|
||||||
|
// Don't broadcast local/ranged chat into dynmap.
|
||||||
|
if (super.getRange() > 0)
|
||||||
|
return;
|
||||||
|
|
||||||
DynmapAPI dynMap = plugin.getDynmap();
|
DynmapAPI dynMap = plugin.getDynmap();
|
||||||
|
|
||||||
if (dynMap != null)
|
if (dynMap != null)
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package com.palmergames.bukkit.TownyChat.events;
|
package com.palmergames.bukkit.TownyChat.events;
|
||||||
|
|
||||||
import com.palmergames.bukkit.TownyChat.channels.Channel;
|
import com.palmergames.bukkit.TownyChat.channels.Channel;
|
||||||
|
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.Event;
|
import org.bukkit.event.Event;
|
||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
@@ -16,6 +18,7 @@ public class PlayerJoinChatChannelEvent extends Event {
|
|||||||
private final Channel channel;
|
private final Channel channel;
|
||||||
|
|
||||||
public PlayerJoinChatChannelEvent(Player player, Channel channel) {
|
public PlayerJoinChatChannelEvent(Player player, Channel channel) {
|
||||||
|
super(!Bukkit.getServer().isPrimaryThread());
|
||||||
this.player = player;
|
this.player = player;
|
||||||
this.channel = channel;
|
this.channel = channel;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user