How can I disable copy and paste?

So, I have a magic game in progress but people seem to just hold the wand, copy and paste spells into the chat and it is too powerful, I need to fix it. Also, removing CTRL+V will not work as they will just make their own keybinds for copy and paste as a few of them did.

Thanks!

You can’t really disable copying and pasting. There are a couple alternatives, though.
Locally (not secure):

  • Make the text box check for input, and if more than 1 character is added at once, keep only the first.
  • Change your spell mechanic use something like a mouse movement or different trigger that is harder to replicate.

On server:

  • Add a cooldown for spells so they can’t be spammed.
1 Like

I’ll probably go with if 2 or more letters are typed at the same time then, thanks for the reply.