Advertisement
Guest User

working command spy (hopefully)

a guest
Sep 16th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. command /commandspy:
  2. description: Toggles commandspy, made by graph_paper1 #had to add that lmao
  3. usage: /commandspy
  4. permission: westmine.cmdspy
  5. permission message: &4You don't have permission to use this command
  6. executable by: players and console
  7. trigger:
  8. if {commandspy::%player%} is not set:
  9. set {commandspy::%player%} to true
  10. message "&bCOMMAND SPY >> Command Spy enabled" to command sender
  11. else:
  12. delete {commandspy::%player%}
  13. message "&bCOMMAND SPY >> Command Spy disabled" to command sender
  14.  
  15.  
  16.  
  17. on command:
  18. player is online
  19. loop all players:
  20. {commandspy::%loop-player%} is true
  21. if player is op:
  22. message "&bCOMMAND SPY >> &4%player%&f: &b/%full command%" to loop-player
  23. else:
  24. message "&bCOMMAND SPY >> &7%player%&f: &b/%full command%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement