aboutsummaryrefslogtreecommitdiff
path: root/forge/src
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-10-23 21:57:14 +0200
committerHacktheTime <l4bg0jb7@duck.com>2023-10-23 21:57:14 +0200
commit80ffe4a632c9d1cc2c7021b990939916fd0155e0 (patch)
treef14e131235d14f99b5cfb91a2672b10d969f3d8f /forge/src
parentd9501d4927e89da37274c3f20da2ecb657a7ae1f (diff)
downloadBBsentials-80ffe4a632c9d1cc2c7021b990939916fd0155e0.tar.gz
BBsentials-80ffe4a632c9d1cc2c7021b990939916fd0155e0.tar.bz2
BBsentials-80ffe4a632c9d1cc2c7021b990939916fd0155e0.zip
added Numpad codes.
limitations: currently missing scroll pane so youre limited because you cant edit the lower ones commands are sent to the server so client side commands do not work unfortunately.
Diffstat (limited to 'forge/src')
-rw-r--r--forge/src/main/java/de/hype/bbsentials/forge/ForgeChat.java17
1 files changed, 1 insertions, 16 deletions
diff --git a/forge/src/main/java/de/hype/bbsentials/forge/ForgeChat.java b/forge/src/main/java/de/hype/bbsentials/forge/ForgeChat.java
index 7764d7b..ef5d7ed 100644
--- a/forge/src/main/java/de/hype/bbsentials/forge/ForgeChat.java
+++ b/forge/src/main/java/de/hype/bbsentials/forge/ForgeChat.java
@@ -2,11 +2,9 @@ package de.hype.bbsentials.forge;
import de.hype.bbsentials.common.chat.Chat;
import de.hype.bbsentials.common.chat.Message;
-import de.hype.bbsentials.common.client.BBsentials;
import de.hype.bbsentials.common.mclibraries.MCChat;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
-import net.minecraft.util.ChatStyle;
import net.minecraft.util.IChatComponent;
import net.minecraftforge.client.event.ClientChatReceivedEvent;
import net.minecraftforge.common.MinecraftForge;
@@ -29,7 +27,7 @@ public class ForgeChat implements MCChat {
//2 means action bar
// Chat.sendPrivateMessageToSelfDebug(String.valueOf(((int) event.type)));
Message message = new Message(IChatComponent.Serializer.componentToJson(event.message), event.message.getUnformattedText());
- Message newMessage = chat.onEvent(message);
+ Message newMessage = chat.onEvent(message, false);
if (!newMessage.equals(message)) {
event.setCanceled(true);
sendClientSideMessage(newMessage);
@@ -46,19 +44,6 @@ public class ForgeChat implements MCChat {
}
}
-
- public void sendClientSideMessage(Message message, boolean actionbar) {
- if (BBsentials.config.swapActionBarChat && !BBsentials.config.swapOnlyNormal) {
- actionbar = !actionbar;
- }
- if (actionbar) {
- showActionBar(message);
- }
- else {
- sendClientSideMessage(message);
- }
- }
-
public void sendChatMessage(String message) {
Minecraft.getMinecraft().thePlayer.sendChatMessage(message);
}