Advertisement
LukaMC59

Untitled

Nov 10th, 2017
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. command /sudo [<player>] [<text>]:
  2. permission: *
  3. trigger:
  4. if arg-1 is set:
  5. if arg-player is not set:
  6. message "&cInvalid Player"
  7. if arg-player is set:
  8. if arg-2 contains "c:":
  9. send "" to console
  10. else:
  11. make arg-player execute "%arg-2%"
  12. if arg-player is set:
  13. if arg-2 contains "/":
  14. make arg-player execute "%arg-2%"
  15. if arg-player is set:
  16. if arg-2 contains "c:":
  17. replace all "c:" in arg-2 with ""
  18. broadcast "%arg-player's display name%&8 »&r %arg-2%"
  19. if arg-1 is not set:
  20. message "&7/sudo <player> <chat/command>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement