Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- execute console command "pex user %player% add wybor.klasy"
- command /menu:
- trigger:
- execute console command "meni %player% 1"
- command /kowal:
- trigger:
- if player has the permission "moje.kowal":
- send "Masz już range kowala"
- stop
- else:
- if player has the permission "wybor.klasy":
- execute console command "pex user %player% add moje.kowal"
- execute console command "pex user %player% remove wybor.klasy"
- else:
- send "Jeszcze nie mozesz wybrac nowej klasy" to player
- command /meni [<player>] [<integer>]:
- executable by: console
- trigger:
- if arg 2 is 1:
- wait 1 tick
- open chest with 5 rows named "&3Menu" to player-arg
- wait 1 tick
- format slot 21 of player-arg with 1 of grass named "&6&lWarpy" with lore "&1To jest lista warpow" to run "meni %player-arg% 2"
- format slot 22 of player-arg with 1 of diamond pickaxe named "&9&lProfesje" with lore "&1Cale menu profesji" to run "meni %player-arg% 3"
- if arg 2 is 2:
- wait 1 tick
- open chest with 5 rows named "&6&lWarpy" to player-arg
- wait 1 tick
- format slot 0 of player-arg with 1 of Gray Stained Glass Pane named "&4&lA" to close then run [make player-arg execute command "warp A"]
- if arg 2 is 3:
- wait 1 tick
- open chest with 5 rows named "&9&lProfesje" to player-arg
- wait 1 tick
- format slot 0 of player-arg with 1 of Lime wool named "&9&lKowal" with lore "&1Zdobadz profesje kowala" to close then run [make player-arg execute command "kowal"]
- format slot 9 of player-arg with 1 of Diamond Sword named "&9&lKowal" to run "meni %player-arg% 4"
- if arg 2 is 4:
- wait 1 tick
- open chest with 5 rows named "&9&lKowal" to player-arg
- wait 1 tick
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement