mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-01 22:22:19 +00:00
Call join event in StandardChannel
This commit is contained in:
1 file changed
+2
@@ -6,6 +6,7 @@ import com.palmergames.bukkit.TownyChat.HexFormatter;
|
||||
import com.palmergames.bukkit.TownyChat.TownyChatFormatter;
|
||||
import com.palmergames.bukkit.TownyChat.config.ChatSettings;
|
||||
import com.palmergames.bukkit.TownyChat.events.AsyncChatHookEvent;
|
||||
import com.palmergames.bukkit.TownyChat.events.PlayerJoinChatChannelEvent;
|
||||
import com.palmergames.bukkit.TownyChat.listener.LocalTownyChatEvent;
|
||||
import com.palmergames.bukkit.towny.Towny;
|
||||
import com.palmergames.bukkit.towny.TownyAPI;
|
||||
@@ -66,6 +67,7 @@ public class StandardChannel extends Channel {
|
||||
if (isAbsent(player.getName())) {
|
||||
join(player.getName());
|
||||
notifyjoin = true;
|
||||
Bukkit.getPluginManager().callEvent(new PlayerJoinChatChannelEvent(player, this));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user