aboutsummaryrefslogtreecommitdiff
path: root/forge/src/main/java/de/hype
diff options
context:
space:
mode:
Diffstat (limited to 'forge/src/main/java/de/hype')
-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);
}