Jump to content

Command Blocker (Easy Skript)


PersonalSlash
 Share

Recommended Posts

Thank you for taking your time viewing this topic, here is the skript.

# COMMAND BLOCKER #

# EVERYONE MAY EDIT IT! YOU CAN CLAIM THIS SKRIPT! #

options:
	help: false # true/false



command /ver:
	aliases: version, pl, plugins, about
	trigger:
		send "&cSorry but you aren't allowed to see this."

command /about:
	aliases: version, pl, plugins, about
	trigger:
		send "&cSorry but you aren't allowed to see this."

command /bukkit:about:
	trigger:
		send "&cSorry but you aren't allowed to see this."

command /bukkit:ver:
	trigger:
		send "&cSorry but you aren't allowed to see this."

command /bukkit:version:
	trigger:
		send "&cSorry but you aren't allowed to see this."

command /bukkit:pl:
	trigger:

command /bukkit:plugins:
	trigger:
		send "&cSorry but you aren't allowed to see this."

command /help:
	trigger:
		if {@help} is false:
			send "&cSorry but you aren't allowed to see this."
		else:
			stop

command /bukkit:help:
	trigger:
		if {@help} is false:
			send "&cSorry but you aren't allowed to see this."
		else:
			stop

command /minecraft:help:
	trigger:
		if {@help} is false:
			send "&cSorry but you aren't allowed to see this."
		else:
			stop

command /bukkit:?:
	trigger:
		if {@help} is false:
			send "&cSorry but you aren't allowed to see this."
		else:
			stop

command /?:
	trigger:
		if {@help} is false:
			send "&cSorry but you aren't allowed to see this."
		else:
			stop

 

Please report any bugs/suggestions in the replies. I would love to fix/add some.

Link to comment
Share on other sites

This makes it that no one can use those commands, not even opped players. Also the else: stop part is not needed. If its not true, it will automatically not do it so that part isn't needed. Also in the /bukkit:pl one, you didn't put anything after the trigger. It is also you are still able to do commands like /pl and /plugins cause those aliases don't work. Also it is better to use the on command event and make it like
on command "/command1" or "/command2":
    if {@help} is false:
        cancel event
        send "&cSorry but you aren't allowed to see this."

Edited by _Tarna_

Discord - Tarna256#8675

In-game name - _Tarna_

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

---------------------------------------------------------
image.png.2111009afbd8bef10966ba9ede35a199.pngimage.png.70849a9b84e0347ce107b8e3eaee312c.png
 

Link to comment
Share on other sites

you should use aliases instead, it makes the skript smaller, and easy to use 🙂

hello fellow human, i dont understand why you['re reading thuis but i hope you have a good dauy

                                                                                                               

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
 Share



×
×
  • Create New...