mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2025-02-02 20:51:26 +01:00
Remove GP listener
This commit is contained in:
parent
4e69d6b37c
commit
78dcdb8450
@ -49,9 +49,9 @@ public class GamePlayerChatListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onAsyncPlayerChat(AsyncPlayerChatEvent event) {
|
||||
String message = event.getMessage();
|
||||
if(plugin.isPluginEnabled("GriefPrevention")) {
|
||||
return;
|
||||
}
|
||||
//if(plugin.isPluginEnabled("GriefPrevention")) {
|
||||
// return;
|
||||
//}
|
||||
plugin.logDebug("ChatFormat [" + event.isCancelled() + "]: " + event.getFormat());
|
||||
if (message.startsWith(PurpleIRC.TOWNYTAG)) {
|
||||
event.setMessage(message.replace(PurpleIRC.TOWNYTAG, ""));
|
||||
|
Loading…
Reference in New Issue
Block a user