From e9d6a8aa983ac8e3eca7984a774af592b59cc33d Mon Sep 17 00:00:00 2001 From: hackthetime Date: Mon, 16 Oct 2023 10:37:12 +0200 Subject: added meme actionbar normal chat switcher. --- common/src/main/java/de/hype/bbsentials/common/chat/Chat.java | 2 +- common/src/main/java/de/hype/bbsentials/common/client/Config.java | 4 ++++ .../src/main/java/de/hype/bbsentials/common/mclibraries/MCChat.java | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'common/src/main') diff --git a/common/src/main/java/de/hype/bbsentials/common/chat/Chat.java b/common/src/main/java/de/hype/bbsentials/common/chat/Chat.java index b11804a..cedb25e 100644 --- a/common/src/main/java/de/hype/bbsentials/common/chat/Chat.java +++ b/common/src/main/java/de/hype/bbsentials/common/chat/Chat.java @@ -145,7 +145,7 @@ public class Chat { } private static void sendPrivateMessageToSelfBase(String message) { - EnvironmentCore.chat.sendClientSideMessage(Message.of(message)); + EnvironmentCore.chat.sendClientSideMessage(Message.of(message), false); } public static void sendPrivateMessageToSelfText(Message message) { diff --git a/common/src/main/java/de/hype/bbsentials/common/client/Config.java b/common/src/main/java/de/hype/bbsentials/common/client/Config.java index 455df36..50f898d 100644 --- a/common/src/main/java/de/hype/bbsentials/common/client/Config.java +++ b/common/src/main/java/de/hype/bbsentials/common/client/Config.java @@ -48,6 +48,10 @@ public class Config implements Serializable { public boolean autoSplashStatusUpdates; public String nickname; public String notifForMessagesType; + // trols + public boolean swapActionBarChat = false; + public boolean swapOnlyNormal = true; + public boolean swapOnlyBBsentials = false; // Set default attribute values private void setDefaults() { diff --git a/common/src/main/java/de/hype/bbsentials/common/mclibraries/MCChat.java b/common/src/main/java/de/hype/bbsentials/common/mclibraries/MCChat.java index eeb89fe..08cbff8 100644 --- a/common/src/main/java/de/hype/bbsentials/common/mclibraries/MCChat.java +++ b/common/src/main/java/de/hype/bbsentials/common/mclibraries/MCChat.java @@ -6,4 +6,8 @@ public interface MCChat { void init(); void sendChatMessage(String message); void sendClientSideMessage(Message message); + + void sendClientSideMessage(Message message, boolean actionbar); + + void showActionBar(Message message); } -- cgit