Guest User

CommandSpy skript v1

a guest
May 25th, 2014
4,964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # Command Spy skript by dvwinn
  2. # Feel free to edit for personal use
  3.  
  4. options:
  5. prefix : &8[&7CommandSpy&8]&7
  6. permission: skript.commandspy
  7.  
  8. command /commandspy:
  9. description: Toggles commandspy
  10. usage: /commandspy
  11. permission: {@permission}
  12. permission message: §4You don't have permission to use this command
  13. executable by: players and console
  14. trigger:
  15. if {commandspy::%player%} is not set:
  16. set {commandspy::%player%} to true
  17. message "{@prefix} Command Spy enabled" to command sender
  18. else:
  19. delete {commandspy::%player%}
  20. message "{@prefix} Command Spy disabled" to command sender
  21.  
  22. on command:
  23. player is online
  24. loop all players:
  25. {commandspy::%loop-player%} is true
  26. if player is op:
  27. message "&4%player%&f: /%full command%" to loop-player
  28. else:
  29. message "&a%player%&f: /%full command%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment