Posted November 28, 20195 yr How do i intercept what the player sends though chat to a server? I'm trying to make a bot using baritone and if the player sends like %start i need to stop it from going though to the server.
November 29, 20195 yr Author Sorry i haven't modded for a long time, so i forgot how to use Events. This doesn't work public static void clientChatEvent(ClientChatEvent event) { System.out.println(event.getMessage()); }
November 29, 20195 yr Author Thanks it works now, but now im trying to send a chat message to the player that only the player can see. Im trying to use this post's 2nd comment. Now in 1.14 i can't find the EntityPlayer class.
November 29, 20195 yr Author Sorry how do make a ServerPlayerEntity? And this is a client only mod so this won't go though to the server correct?
November 29, 20195 yr Author I feel stupider with every message, how do i use ITextComponent? I cant find a way
November 29, 20195 yr Author Sorry im still at a loss. I can't find TextComponentString, which for all the examples i see is required
November 29, 20195 yr Author Thank you! It took me a while to figure out but i found out that its not TextComponentString, its StringTextComponent
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.