Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- broadcast "&6&lEX &8» &eCustom plugin for SparksSB & SparksFM"
- command /ex [<text>] [<text>] [<text>]:
- permission: ex.*
- permission message: "&6&LEX &8» &eNo permissions."
- trigger:
- if arg-1 is "reload":
- execute console command "sk reload Exceqtion's Skripts/Ex Plugin.sk"
- broadcast "&6&lEX &8» &ev1.1 reloaded"
- else if arg-1 is "prefix":
- set {_player} to arg-2 parsed as a offline player
- if {_player} is set:
- if arg-3 is set:
- set {_player}'s prefix to "%arg-3%"
- send "&7Successfully gave the player a prefix."
- else:
- send "&eWhat prefix are you giving them?"
- else:
- send "&eWhat player are you giving a prefix?"
- else if arg-1 is "suffix":
- set {_player} to arg-2 parsed as a offline player
- if {_player} is set:
- if arg-3 is set:
- set {_player}'s suffix to "%arg-3%"
- send "&7Successfully gave the player a suffix."
- else:
- send "&eWhat suffix are you giving them?"
- else:
- send "&eWhat player are you giving a suffix?"
- else if arg-1 is "help":
- send "&8-------------------"
- send "&6&LEX"
- send "&8-------------------"
- send "&e/ex help - The command you see right now."
- send "&e/ex reload - Reload the plugin's config."
- send "&e/ex suffix - Set a suffix."
- send "&e/ex prefix - Set a prefix."
- send "&e/ex rank - Set a rank. &6(Requires Pex)"
- send "&8-------------------"
- else if arg-1 is "rank":
- set {_player} to arg-2 parsed as a offline player
- if {_player} is set:
- if arg-3 is set:
- execute console command "pex user %{_player}% group set %arg-3%"
- send "" to {_player}
- send "&7Your rank has been set by &e%player%&7." to {_player}
- send "" to {_player}
- else:
- send "&7Usage: &e/ex (reload|prefix|suffix|help|rank) (player) (prefix|rank|suffix)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement