# #Szybka komenda na dawanie rang # command /ranga []: permission: ranga.set permission message: &c» Panie! Nie masz permisji! trigger: if arg 1 is set: open chest with 6 rows named "&c» &cPanel rang %player%" to player format slot 10 of player with 1 dye:8 named "&cUstaw range:&7 Gracz" to close then run [execute console command "pex user %player% group set Gracz"] format slot 12 of player with 1 dye:11 named "&cUstaw range:&e VIP" to close then run [execute console command "pex user %player% group set VIP"] format slot 14 of player with 1 dye:14 named "&cUstaw range:&6 S&eVIP" to close then run [execute console command "pex user %player% group set SVIP"] format slot 16 of player with 1 dye:10 named "&cUstaw range:&a Sponsor" to close then run [execute console command "pex user %player% group set Sponsor"] format slot 28 of player with 1 dye:15 named "&cUstaw range:&4 You&fTube" to close then run [execute console command "pex user %player% group set YouTube"] format slot 30 of player with 1 dye:11 named "&cUstaw range:&e Budowniczy" to close then run [execute console command "pex user %player% group set Budowniczy"] format slot 32 of player with 1 dye:6 named "&cUstaw range:&3 Helper" to close then run [execute console command "pex user %player% group set Helper"] format slot 34 of player with 1 dye:10 named "&cUstaw range:&a JuniorMod" to close then run [execute console command "pex user %player% group set JuniorMod"] format slot 46 of player with 1 dye:2 named "&cUstaw range:&2 Moderator" to close then run [execute console command "pex user %player% group set Mod"] format slot 48 of player with 1 dye:1 named "&cUstaw range: Admin" to close then run [execute player command "pinrank admin"] format slot 50 of player with 1 dye:5 named "&cUstaw range:&5 Support" to close then run [execute player command "pinrank support"] format slot 52 of player with 1 dye:1 named "&cUstaw range:&4&l Wlasciciel" to close then run [execute player command "pinrank wlasciciel"] command /pinrank []: trigger: if arg 1 is "admin": set {admin.pin.%player%} to true send "&7» &cProbujesz nadac range: &cAdmin&c dla %player%. Ze wzgledu na bezpieczenstwo podaj PIN na chacie, zeby nadac range." if arg 1 is "support": set {support.pin.%player%} to true send "&7» &cProbujesz nadac range: &5Support&c dla %player%. Ze wzgledu na bezpieczenstwo podaj PIN na chacie, zeby nadac range." if arg 1 is "wlasciciel": set {wlasciciel.pin.%player%} to true send "&7» &cProbujesz nadac range: &4Wlasciciel&c dla %player%. Ze wzgledu na bezpieczenstwo podaj PIN na chacie, zeby nadac range." on chat: if {wlasciciel.pin.%player%} is true: cancel event if message contains "9681": set {wlasciciel.pin.%player%} to false send "&7» &cNapisano poprawny pin. Ranga zostala nadana." execute console command "pex user %player% group set WL" else: send "&7» &cNapisano bledny pin." on chat: if {support.pin.%player%} is true: cancel event if message contains "7681": set {support.pin.%player%} to false send "&7» &cNapisano poprawny pin. Ranga zostala nadana." execute console command "pex user %player% group set Support" else: send "&7» &cNapisano bledny pin." on chat: if {admin.pin.%player%} is true: cancel event if message contains "5681": set {admin.pin.%player%} to false send "&7» &cNapisano poprawny pin. Ranga zostala nadana." execute console command "pex user %player% group set Admin" else: send "&7» &cNapisano bledny pin."