Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rank [<player>] [<text>]:
- permission: *
- trigger:
- if arg-1 is set:
- if arg-player is not set:
- message "&cInvalid Player ( Offline / Spelling Error / Non Existing )"
- if arg-player is set:
- if arg-2 is "admin":
- message "&c%arg-player%&7 is now an &cAdministrator"
- send "&7You're now an &cAdminstrator" to arg-player
- execute console command "pex user %arg-player% group set admin"
- if arg-player is set:
- if arg-2 is "administrator":
- message "&c%arg-player%&7 is now an &cAdministrator"
- send "&7You're now an &cAdministrator" to arg-player
- execute console command "pex user %arg-player% group set admin"
- if arg-player is set:
- if arg-2 is "mod":
- message "&c%arg-player%&7 is now a &eModerator"
- send "&7You're now a &eModerator" to arg-player
- execute console command "pex user %arg-player% group set mod"
- if arg-player is set:
- if arg-2 is "moderator":
- message "&c%arg-player%&7 is now a &eModerator"
- send "&7You're now a &eModerator" to arg-player
- execute console command "pex user %arg-player% group set mod"
- if arg-1 is not set:
- message "&c/rank (player) (rank)"
- if arg-2 is not "mod":
- if arg-2 is not "admin":
- if arg-2 is not "moderator":
- if arg-2 is not "reset":
- message "&cInvalid Rank"
- message "&7Available ranks are &cAdministrator &7and &eModerator &7(You can also use Reset to set someone's rank to Default)"
- if arg-player is set:
- if arg-2 is not set:
- message "&c%arg-player%&7 is %arg-player's prefix%"
- if arg-player is set:
- if arg-2 is "reset":
- message "&c%arg-player%&7 is now a &8Member"
- send "&7You're now a &8Member" to arg-player
- execute console command "pex user %arg-player% group set default"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement