Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /staffpromote [<offline player>]:
- #------------------
- # Alias for /staffpromote
- #------------------
- aliases: /spromote
- #-----------------------------
- #Permission (can be whatever)
- #-----------------------------
- permission: staff.promote
- #--------------------------------------
- #Message if player doesn't have perms.
- #--------------------------------------
- permission message: &cYou may not use this command!
- trigger:
- #---------------
- # Requires Args
- #---------------
- if arg-1 is not set:
- send "&cStaff Promoter: &7Incorrect usage!"
- send "&c/spromote &7<player>"
- if arg-1 is set:
- open chest with 6 rows named "Promote %arg-1%" to player
- wait 1 tick
- #-------------------------------------------------
- # CHANGE COMMANDS AT END OF EACH LINE OF CODE
- #-------------------------------------------------
- format slot 4 of player with arg-1's skull named "&a&l%arg-1%" with lore "&7Promote this player" to be unstealable
- format slot 10 of player with paper named "&a&lBasic Promotions" with lore "&7Monitor, Helper, and Mod" to be unstealable
- format slot 19 of player with 351:6 named "&a&lMonitor" with lore "&7Promote this player to Monitor" to close then run [execute player command "pex user %arg-1% group add monitor","tablistedit set %arg-1% monitor","bc &4%arg-1% &cis now a &4Monitor."]
- format slot 28 of player with 351:13 named "&a&lHelper" with lore "&7Promote this player to Helper" to close then run [execute player command "pex user %arg-1% group add helper","tablistedit set %arg-1% helper","bc &4%arg-1% &cis now a &4Volunteer."]
- format slot 37 of player with 351:10 named "&a&lMod" with lore "&7Promote this player to Mod" to close then run [execute player command "pex user %arg-1% group add mod","tablistedit set %arg-1% mod","bc &4%arg-1% &cis now a &4C.O."]
- format slot 11 of player with paper named "&a&lAdvanced Promotions" with lore "&7Admin, Manager, and Owner" to be unstealable
- format slot 20 of player with 351:12 named "&a&lAdmin" with lore "&7Promote this player to Admin" to close then run [execute player command "pex user %arg-1% group add admin","tablistedit set %arg-1% admin","bc &4%arg-1% &cis now a &4Guard."]
- format slot 29 of player with 351:14 named "&a&lManager" with lore "&7Promote this player to Manager" to close then run [execute player command "pex user %arg-1% group add manager","tablistedit set %arg-1% manager","bc &4%arg-1% &cis now a &4Commander."]
- format slot 38 of player with 351:1 named "&a&lOwner" with lore "&7Promote this player to Owner" to close then run [execute player command "pex user %arg-1% group add owner","tablistedit set %arg-1% owner","bc &4%arg-1% &cis now a &4Warden."]
- format slot 14 of player with paper named "&a&lMedia Promotions" with lore "&7YouTuber, Streamer, and Twitter" to be unstealable
- format slot 23 of player with 351:6 named "&a&lStreamer" with lore "&7Promote this player to Streamer" to close then run [execute player command "pex user %arg-1% group add streamer","tablistedit set %arg-1% streamer","bc &4%arg-1% &cis now a &4Streamer."]
- format slot 32 of player with 351:15 named "&a&lYoutuber" with lore "&7Promote this player to Youtuber" to close then run [execute player command "pex user %arg-1% group add youtuber","tablistedit set %arg-1% youtuber","bc &4%arg-1% &cis now a &4YouTuber."]
- format slot 12 of player with paper named "&a&lOther Promotions" with lore "&7Builder and Developer" to be unstealable
- format slot 21 of player with 351:2 named "&a&lDeveloper" with lore "&7Promote this player to Developer" to close then run [execute player command "pex user %arg-1% group add developer","tablistedit set %arg-1% developer","bc &4%arg-1% &cis now a &4Developer."]
- format slot 30 of player with 351:5 named "&a&lBuilder" with lore "&7Promote this player to Builder" to close then run [execute player command "pex user %arg-1% group add builder","tablistedit set %arg-1% builder","bc &4%arg-1% &cis now a &4Builder."]
- format slot 16 of player with paper named "&a&lDemotions" with lore "&7Helper, Mod, and Member" to be unstealable
- format slot 25 of player with 351:13 named "&a&lMonitor" with lore "&7Demote this player to Monitor" to close then run [execute player command "pex user %arg-1% group set monitor","tablistedit set %arg-1% monitor","bc &4%arg-1% &cis now a &4Monitor."]
- format slot 34 of player with 351:10 named "&a&lHelper" with lore "&7Demote this player to Helper" to close then run [execute player command "pex user %arg-1% group set helper","tablistedit set %arg-1% helper","bc &4%arg-1% &cis now a &4Helper."]
- format slot 43 of player with 351:8 named "&a&lMember" with lore "&7Demote this player to Member||||&c&lWARNING:||&cThis will put them back to A rank!" to close then run [execute player command "pex user %arg-1% group set A","tablistedit set %arg-1% member","bc &4%arg-1% &cis now a &4Member."]
- #end of code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement