diff options
author | hackthetime <l4bg0jb7@duck.com> | 2023-10-16 10:37:12 +0200 |
---|---|---|
committer | hackthetime <l4bg0jb7@duck.com> | 2023-10-16 10:37:12 +0200 |
commit | e9d6a8aa983ac8e3eca7984a774af592b59cc33d (patch) | |
tree | b20231cac0d4ab1f8bcfc225733c0abdb7e87bab /common/src/main | |
parent | 6dd18970edf93c6e9bb5315194e0accd81810fb1 (diff) | |
download | BBsentials-e9d6a8aa983ac8e3eca7984a774af592b59cc33d.tar.gz BBsentials-e9d6a8aa983ac8e3eca7984a774af592b59cc33d.tar.bz2 BBsentials-e9d6a8aa983ac8e3eca7984a774af592b59cc33d.zip |
added meme actionbar normal chat switcher.
Diffstat (limited to 'common/src/main')
3 files changed, 9 insertions, 1 deletions
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); } |