Advertisement
sora200507

Untitled

Jul 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. command /commandspy [<player>]:
  2. aliases: /commands, /cspy
  3. permission: commandspy.use
  4. permission message: &e&l(!) You cannot use this command!
  5. trigger:
  6. if arg 1 is set:
  7. if {cs::%uuid of arg 1%} is set:
  8. clear {cs::%uuid of arg 1%}
  9. send "&c&l(!) Command spy has been disabled for %arg 1%."
  10. send "&c&l(!) Your command spy has been disabled." to arg 1
  11. else:
  12. set {cs::%uuid of arg 1%} to true
  13. send "&a&l(!) Your command spy has been enabled." to arg 1
  14. send "&a&l(!) Command spy has been enabled for %arg 1%."
  15. else:
  16. if {cs::%uuid of player%} is set:
  17. clear {cs::%uuid of player%}
  18. send "&c&l(!) Your command spy has been disabled."
  19. else:
  20. set {cs::%uuid of player%} to true
  21. send "&a&l(!) Your command spy has been enabled."
  22. on command:
  23. if sender is a player:
  24. loop all players:
  25. if {cs::%uuid of loop-player%} is set:
  26. if "%player%" is not "%loop-player%":
  27. send "&c&l(!) %player% executed the command &n/%complete command%&c&l." to loop-player
  28. on quit:
  29. delete {cs::%uuid of player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement