Jump to content

Recommended Posts

Posted (edited)

Hi! Is there a way to stop the sending of commands before they reach the server (so completely on the client-side)? I've done a bit of research and most resources I found state that ClientChatEvent should be used. But for me that only fires for regular chat messages and not for commands. Any help is appreciated!

Edited by Towo
  • Towo changed the title to [Forge 1.19] Intercept commands on the client-side
Posted

Sorry if my original post is unclear. I'm not trying to register new commands. I'm trying to listen for when the client sends a command (similar to ClientChatEvent but with commands) and cancel that. 

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.

×
×
  • Create New...

Important Information

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