toxamin

Untitled

Oct 19th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. command /commandspy [<player>] [<text>]:
  2. aliases: /cspy
  3. permission: commandspy.use
  4. permission message: &cNo permission.
  5. trigger:
  6. if arg 2 is set:
  7. send "&cUsage: /commandspy [<player>]"
  8. if arg 1 is set:
  9. if {commandspy::%uuid of arg-1%} is set:
  10. clear {commandspy::%uuid of arg-1%}
  11. send "&fDisabled &6CommandSpy&f for &6%arg-1%."
  12. send "&fYour &6CommandSpy&f has been disabled." to arg 1
  13. else:
  14. set {commandspy::%uuid of arg-1%} to true
  15. send "&fEnabled &6CommandSpy&f for &6%arg-1%."
  16. send "&fYour &6CommandSpy&f has been enabled." to arg 1
  17. else:
  18. if {commandspy::%uuid of player%} is set:
  19. clear {commandspy::%uuid of player%}
  20. send "&fYour &6CommandSpy&f has been disabled."
  21. else:
  22. set {commandspy::%uuid of player%} to true
  23. send "&fYour &6CommandSpy&f has been enabled."
  24. on command:
  25. if sender is a player:
  26. loop all players:
  27. if {commandspy::%uuid of loop-player%} is set:
  28. if "%player%" is not "%loop-player%":
  29. send "&6CommandSpy %player%&f executed /&6%complete command%&f." to loop-player
Advertisement
Add Comment
Please, Sign In to add comment