Jump to content

This is how you disable commands


Atilla5590

Recommended Posts

I wouldn't run this skript if i were you. Commands are essential to minecraft servers and you could prevent a player from leaving the server with /lobby.

You could even stop yourself from reloading skript!

Instead, disable specific commands like so:

# change the command after "on command" to disable a different command
on command /plugins:
	if player has permission op:
		# nothing
	else:
    	cancel the event
		send "&c&o&lHey! &r&7You can't run that command."

You can copy and paste this skript multiple times with different commands to add more disability.

(I don't need credit either)

Edited by coshnaut

Skript is omnipotent, Skript is everything

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...