Jump to content

Get chat a message and cancel it


fritzcat

Recommended Posts

I need help on detecting a chat message and cancelling it. So, if the player types: "lag", it would cancel it and say: "Do not spam".

I need this for my LAN world, i am gonna play with my friends. Plz help!

*Note: I have tried this myself, but "ServerChatEvent" doesnt exist!!

Link to comment
Share on other sites

Hmm, I was wondering how the heck you managed to set it up in literally 1 min and 14 sec (not counting writing your post and reloading pages).

 

Anyway - what version are you on? Tho I have no idea when that event was introduced, my bet is that it is not very old one, so if you have ancient MC version, you might be outdated.

 

Other problem (more likely) is your workspace setup - are you sure your workspace is "working"?

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Read my post again.

 

 

 

#jokeWarning

#iAmNotRudePerson

3mLydMU.png

 

 

 

Hint:

 

 

net.minecraftforge.fml.common.event.ServerChatEvent != net.minecraftforge.event.ServerChatEvent

 

 

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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