Solved Skript help - Disable plugin specific commands.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

CustomWorldYT

Member
Jun 17, 2018
15
0
0
I develop a FreeOP mod in a skript, and I want to ask if it's possible to block every command that contains colons, I don't want OPs to execute commands like /minecraft:advancement blah blah. Is it possible?[/B]

Skript Version: 2.2 dev36 (Pre-release)
Skript Author: CustomWorldYT
Minecraft Version: 1.12.2

---
Code example:

code_language.skript:
on command /minecraft:<any argument there>:
        message "&7Plugin specific commands are disabled."

Errors on Reload:

code_language.skript:
None ¯\_(ツ)_/¯

Console Errors:

code_language.skript:
None... ¯\_(ツ)_/¯

Other Useful Info:

Addons using (including versions):
None there too ツ

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it?
Um, no idea.
 
Try this:
code_language.skript:
on command:
    command contains ":"
    cancel event
    message "&7Plugin specific commands are disabled."
 
Status
Not open for further replies.