Advertisement
LukaMC59

Untitled

Nov 18th, 2017
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. command /sudo [<player>] [<text>] [<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 not "command":
  10. if arg-2 is not "chat":
  11. message "&8» &7Invalid action. Valid ones are &cChat&7 and &cCommand"
  12. if arg-player is set:
  13. if arg-2 is "command" or "chat":
  14. if arg-2 is "command":
  15. make arg-player execute command "%arg-3%"
  16. else if arg-2 is "chat":
  17. broadcast "%arg-player's display name%&f: %arg-3%"
  18. if arg-1 is not set:
  19. message "&8»&7 /sudo [<player>] [<command/chat>] [<command/message>]"
  20. if arg-2 is not set:
  21. message "&8»&7 /sudo [<player>] [<command/chat>] [<command/message>]"
  22. if arg-3 is not set:
  23. message "&8»&7 /sudo [<player>] [<command/chat>] [<command/message>]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement