Rename per request

This commit is contained in:
underscore11code authored and Josh (Vicarious) committed 2020-08-09 23:32:18 -07:00
1 parent d4cf721272
commit 787a78c935
4 files changed
+5 -5

No files matched your search

@@ -105,6 +105,6 @@ public abstract class ChatChannel {
public String processPlaceholders(ChatUser user, String input) { return input; }
public abstract boolean isCanceled();
public abstract boolean shouldCancelChatEvent();
}
@@ -438,7 +438,7 @@ public class CarbonChatChannel extends ChatChannel {
}
@Override
public boolean isCanceled() {
return getBoolean("cancel");
public boolean shouldCancelChatEvent() {
return getBoolean("cancel-message-event");
}
}
@@ -25,7 +25,7 @@ public class BukkitChatListener implements Listener {
ChatUser user = carbonChat.getUserService().wrap(event.getPlayer());
ChatChannel channel = user.getSelectedChannel();
if (channel.isCanceled()) event.setCancelled(true);
if (channel.shouldCancelChatEvent()) event.setCancelled(true);
for (ChatChannel entry : carbonChat.getChannelManager().getRegistry().values()) {
if (entry.getMessagePrefix() == null) {