Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sudo [<player>] [<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 set:
- if arg-2 contains "c:"
- set {m_sudo} to arg-2
- replace all "c:" in arg-2 with ""
- broadcast "%arg-player's display name%&f: %{m_sudo}%"
- else:
- make arg-player execute "%arg-2%"
- if arg-1 is not set:
- message "&8» &7/sudo [<player>] [<message/command>]"
- if arg-player is set:
- if arg-2 is not set:
- message "&8» &7/sudo [<player>] [<message/command>]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement