Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Command Spy skript by dvwinn
- # Feel free to edit for personal use
- options:
- prefix : &8[&7CommandSpy&8]&7
- permission: skript.commandspy
- command /commandspy:
- description: Toggles commandspy
- usage: /commandspy
- permission: {@permission}
- permission message: §4You don't have permission to use this command
- executable by: players and console
- trigger:
- if {commandspy::%player%} is not set:
- set {commandspy::%player%} to true
- message "{@prefix} Command Spy enabled" to command sender
- else:
- delete {commandspy::%player%}
- message "{@prefix} Command Spy disabled" to command sender
- on command:
- player is online
- loop all players:
- {commandspy::%loop-player%} is true
- if player is op:
- message "&4%player%&f: /%full command%" to loop-player
- else:
- message "&a%player%&f: /%full command%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment