Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /commandspy [<player>] [<text>]:
- aliases: /cspy
- permission: commandspy.use
- permission message: &cNo permission.
- trigger:
- if arg 2 is set:
- send "&cUsage: /commandspy [<player>]"
- if arg 1 is set:
- if {commandspy::%uuid of arg-1%} is set:
- clear {commandspy::%uuid of arg-1%}
- send "&fDisabled &6CommandSpy&f for &6%arg-1%."
- send "&fYour &6CommandSpy&f has been disabled." to arg 1
- else:
- set {commandspy::%uuid of arg-1%} to true
- send "&fEnabled &6CommandSpy&f for &6%arg-1%."
- send "&fYour &6CommandSpy&f has been enabled." to arg 1
- else:
- if {commandspy::%uuid of player%} is set:
- clear {commandspy::%uuid of player%}
- send "&fYour &6CommandSpy&f has been disabled."
- else:
- set {commandspy::%uuid of player%} to true
- send "&fYour &6CommandSpy&f has been enabled."
- on command:
- if sender is a player:
- loop all players:
- if {commandspy::%uuid of loop-player%} is set:
- if "%player%" is not "%loop-player%":
- send "&6CommandSpy %player%&f executed /&6%complete command%&f." to loop-player
Advertisement
Add Comment
Please, Sign In to add comment