diff --git a/src/main/java/me/arasple/mc/trchat/chat/listeners/ListenerChatEvent.java b/src/main/java/me/arasple/mc/trchat/chat/listeners/ListenerChatEvent.java index da4ef3c1..a4b82ef4 100644 --- a/src/main/java/me/arasple/mc/trchat/chat/listeners/ListenerChatEvent.java +++ b/src/main/java/me/arasple/mc/trchat/chat/listeners/ListenerChatEvent.java @@ -47,7 +47,7 @@ public void onChat(AsyncPlayerChatEvent e) { } if (TrChatFiles.getChannels().getBoolean("FORCE-GLOBAL") || e.getMessage().startsWith(TrChatFiles.getChannels().getString("FORCE-GLOBAL-PREFIX"))) { e.setCancelled(true); - ChannelGlobal.execute(player, e.getMessage().replace(TrChatFiles.getSettings().getString("FORCE-GLOBAL-PREFIX"), "")); + ChannelGlobal.execute(player, e.getMessage().replace(TrChatFiles.getChannels().getString("FORCE-GLOBAL-PREFIX"), "")); return; }