Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /commandspy [<player>]:
- aliases: /commands, /cspy
- permission: commandspy.use
- permission message: &3&lStvSaga &8| &7You cannot use this command!
- trigger:
- if arg 1 is set:
- if {cs::%uuid of arg 1%} is set:
- clear {cs::%uuid of arg 1%}
- send "&3&lStvSaga &8| &7Command spy has been disabled for %arg 1%."
- send "&3&lStvSaga &8| &7Command spy has been disabled." to arg 1
- else:
- set {cs::%uuid of arg 1%} to true
- send "&3&lStvSaga &8| &7Command spy has been enabled." to arg 1
- send "&3&lStvSaga &8| &7Command spy has been enabled for %arg 1%."
- else:
- if {cs::%uuid of player%} is set:
- clear {cs::%uuid of player%}
- send "&3&lStvSaga &8| &7Command spy has been disabled."
- else:
- set {cs::%uuid of player%} to true
- send "&3&lStvSaga &8| &7Command spy has been enabled."
- on command:
- if sender is a player:
- loop all players:
- if {cs::%uuid of loop-player%} is set:
- if "%player%" is not "%loop-player%":
- send "&3&lStvSaga &8| &7%player% tried to do the command &b/%complete command%&7." to loop-player
- on load:
- set {csversion} to "2.1"
- message "&3&lStvSaga &8| &7Successfully turned on CommandSpy." to console
- on unload:
- message "&3&lStvSaga &8| &7Successfully turned off CommandSpy." to console
- on quit:
- delete {cs::%uuid of player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement