Advertisement
Guest User

Commandspy

a guest
Apr 22nd, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1.  
  2. command /commandspy [<player>]:
  3. aliases: /commands, /cspy
  4. permission: commandspy.use
  5. permission message: &3&lStvSaga &8| &7You cannot use this command!
  6. trigger:
  7. if arg 1 is set:
  8. if {cs::%uuid of arg 1%} is set:
  9. clear {cs::%uuid of arg 1%}
  10. send "&3&lStvSaga &8| &7Command spy has been disabled for %arg 1%."
  11. send "&3&lStvSaga &8| &7Command spy has been disabled." to arg 1
  12. else:
  13. set {cs::%uuid of arg 1%} to true
  14. send "&3&lStvSaga &8| &7Command spy has been enabled." to arg 1
  15. send "&3&lStvSaga &8| &7Command spy has been enabled for %arg 1%."
  16. else:
  17. if {cs::%uuid of player%} is set:
  18. clear {cs::%uuid of player%}
  19. send "&3&lStvSaga &8| &7Command spy has been disabled."
  20. else:
  21. set {cs::%uuid of player%} to true
  22. send "&3&lStvSaga &8| &7Command spy has been enabled."
  23. on command:
  24. if sender is a player:
  25. loop all players:
  26. if {cs::%uuid of loop-player%} is set:
  27. if "%player%" is not "%loop-player%":
  28. send "&3&lStvSaga &8| &7%player% tried to do the command &b/%complete command%&7." to loop-player
  29. on load:
  30. set {csversion} to "2.1"
  31. message "&3&lStvSaga &8| &7Successfully turned on CommandSpy." to console
  32. on unload:
  33. message "&3&lStvSaga &8| &7Successfully turned off CommandSpy." to console
  34. on quit:
  35. delete {cs::%uuid of player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement