command /rank <player>:
permission: admin.rank
trigger:
if arg-1 is set:
open virtual chest with size 5 named "&7You're ranking &e%arg-1%" to player
format gui slot 0,1,2,3,5,6,7 and 8 of player with black stained glass pane named " " to do nothing
format gui slot 4 of player with barrier named "&cCLOSE" to close
format gui slot 19 of player with red wool named "&7Rank &e%arg-1% &7to &c[OWNER]" to run:
execute player command "lp user %arg-1% parent set owner"
format gui slot 20 of player with yellow wool named "&7Rank &e%arg-1% &7to &e[CO-OWNER]" to run:
execute player command "lp user %arg-1% parent set coowner"
format gui slot 21 of player with orange wool named "&7Rank &e%arg-1% &7to &c[MANAGER]" to run:
execute player command "lp user %arg-1% parent set manager"
format gui slot 22 of player with orange wool named "&7Rank &e%arg-1% &7to &c[ADMINISTRATOR]" to run:
execute player command "lp user %arg-1% parent set admin"
format gui slot 23 of player with purple wool named "&7Rank &e%arg-1% &7to &d[MODERATOR]" to run:
execute player command "lp user %arg-1% parent set moderator"
format gui slot 24 of player with blue wool named "&7Rank &e%arg-1% &7to &9[HELPER]" to run:
execute player command "lp user %arg-1% parent set helper"
format gui slot 25 of player with light blue wool named "&7Rank &e%arg-1% &7to &9[BUILDER]" to run:
execute player command "lp user %arg-1% parent set builder"
format gui slot 38 of player with blue wool named "&7Rank &e%arg-1% &7to &9[PREMIUM]"
format gui slot 39 of player with light blue wool named "&7Rank &e%arg-1% &7to &b[MVP]"
format gui slot 40 of player with green wool named "&7rank &e%arg-1% &7to &a[VIP+]"
format gui slot 41 of player with lime wool named "&7Rank &e%arg-1% &7to &a[VIP]"
format gui slot 42 of player with light gray wool named "&7Rank &e%arg-1% &7to &7[DEFAULT]"