Files
command-hider.sk
Code
1 29
command-hider.sk
# Command Hider
# Place this file in plugins/Skript/scripts/
# Reload with: /sk reload command-hider
options:
hidden-commands: plugins|pl|version|ver|bukkit:plugins|bukkit:version|help|?
on command:
if player has permission "commandhider.bypass":
stop
set {_used-command} to command
loop split "{@hidden-commands}" at "|":
if {_used-command} is loop-value:
cancel event
stop
on tab complete:
if player has permission "commandhider.bypass":
stop
set {_input} to event-string
replace all "/" in {_input} with ""
set {_used-command} to first element of split {_input} at " "
loop split "{@hidden-commands}" at "|":
if {_used-command} is loop-value:
clear tab completions
stop