Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sudo [<player>] [<text>] [<text>]:
- permission: essentials.sudo, essentials.*
- permission message: &8»&7 You haven't got permission &cessentials.sudo&7 to execute this command
- trigger:
- if arg-1 is set:
- if arg-player is not set:
- message "&8» &7Invalid Player"
- if arg-player is set:
- if arg-2 is not "command":
- if arg-2 is not "chat":
- message "&8» &7Invalid action. Valid ones are &cChat&7 and &cCommand"
- if arg-player is set:
- if arg-2 is "command" or "chat":
- if arg-2 is "command":
- make arg-player execute command "%arg-3%"
- else if arg-2 is "chat":
- broadcast "%arg-player's display name%&f: %arg-3%"
- if arg-1 is not set:
- message "&8»&7 /sudo [<player>] [<command/chat>] [<command/message>]"
- if arg-2 is not set:
- message "&8»&7 /sudo [<player>] [<command/chat>] [<command/message>]"
- if arg-3 is not set:
- message "&8»&7 /sudo [<player>] [<command/chat>] [<command/message>]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement