Advertisement
70sOn7

Sudo

Oct 28th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. command /sudo <player> [<text>]:
  2. permission: server.sudo
  3. trigger:
  4. if arg-1 is set:
  5. if arg-2 is set:
  6. make arg-1 execute "/%arg-2%"
  7. message "&8» &7You made &c%arg-1% &7run &c%arg-2%"
  8. stop
  9. if arg-1 is "%{staffl::*}%":
  10. message "&8» &7You cannot sudo that player!"
  11. stop
  12. if arg-1 is not set:
  13. message "&9Usage &8» &c/sudo (Player) (Command)"
  14. stop
  15. if arg-2 is not set:
  16. message "&9Usage &8» &c/sudo (Player) (Command)"
  17. stop
  18. if arg-1 is player:
  19. message "&9Usage &8» &cYou cannot sudo yourself"
  20. stop
  21.  
  22. command /staffadd [<offlineplayer>]:
  23. permission: server.staffadd
  24. trigger:
  25. if arg-1 is not set:
  26. send "9Staff Add &8» &c/staffadd (Player)"
  27. if arg-1 is set:
  28. send "&8» &7You added &c%arg-1% &7to the &cStaff List&7!"
  29. add arg-1 to {staff::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement