Fix auto selection

This commit is contained in:
Elikill58 committed 2024-11-07 20:16:18 +01:00
1 parent 4b966f056e
commit c9ea8061c8
2 files changed
+1 -5

No files matched your search

@@ -23,10 +23,6 @@ public class ChatEventListener implements Listener {
@EventHandler(priority = EventPriority.LOWEST)
public void onChat(AsyncPlayerChatEvent e) {
if (ChatManager.isTestingEnabled() && !ChatManager.isTesting("packet"))
return;
if(!ChatItem.getInstance().isManagerEnabled("packet"))
return;
if (ChatManager.containsSeparator(e.getMessage())) { // If the BELL character is found, we have to remove it
e.setMessage(ChatManager.removeSeparator(e.getMessage()));
}
@@ -374,7 +374,7 @@ public abstract class ChatManager {
if(isTestingEnabled())
return true;
String selected = ChatItem.getInstance().getStorage().manager;
if (selected == "both" || selected == "all")
if (selected.equalsIgnoreCase("both") || selected.equalsIgnoreCase("all"))
return true;
if (selected == "auto") {
if (Utils.IS_PAPER && actual == "paper")