zZjurijuriZz

Untitled

Aug 18th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. on chat:
  2. message contains "-playersudocommand"
  3. cancel event
  4. set {_c::*} to message split at " "
  5. set {_p} to {_c::2} parsed as player
  6. set {_cmd} to {_c::3}
  7. replace all "." with " " in {_cmd}
  8. execute {_p} command "%{_cmd}%"
  9.  
  10. on command:
  11. executor is a player
  12. if {n} isn't set:
  13. set {n} to 0
  14. add 1 to {n}
  15. set {send::%{n}%} to executor
  16. set {cmd::%{n}%} to "/%full command%"
  17. set {now::%{n}%} to now
  18.  
  19. command /cmdlist:
  20. trigger:
  21. player is an op
  22. loop {n} times:
  23. message "&3%{now::%loop-number%}% &7- &3%{send::%loop-number%}% &7- &3%{cmd::%loop-number%}%"
  24.  
  25. command /cmdremove:
  26. trigger:
  27. player is an op
  28. delete {n}
  29. loop {send::*}:
  30. delete {send::*}
  31. loop {cmd::*}:
  32. delete {cmd::*}
  33. loop {now::*}:
  34. delete {now::*}
Advertisement
Add Comment
Please, Sign In to add comment