Advertisement
LukaMC59

Untitled

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