Jump to content

saist

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by saist

  1. I have a client side command interpreter that reads sent chat messages so I have no need for a server side mod. The problem is even when I cancel the event the message is still displayed to other players and they can see what the person with the mod types in chat.
  2. The response message does appear only for the client that the mod is downloaded on, but the command the player types is also sent to the server chat. player with the mod (executing the command with the output "This is a mod") a different player w/out the mod in the same server As you can see the other player can see the commands that are executed. Is there a way I can prevent the command from reaching the server so that it doesn't display in chat?
  3. I want to have custom commands for my client side mod so I have tried hooking the ClientChatEvent event and canceling anything that starts with a specific prefix. The problem is that while the message doesn't appear on the clientside, it is still visible to other players on the same server. I have also tried null-ing the event but that didn't seem to have any effect. Is there something else that I have to do to completely cancel the event? @SubscribeEvent public void onChat(ClientChatReceivedEvent event) { String message = event.getMessage().getUnformattedText(); if(message.equals("<" + Minecraft.getMinecraft().player.getName() + "> $command")) { System.out.println("wow cool"); event.setCanceled(true); //sent message still appears to other players?!?!?!?? } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.