on join:
give player compass
give player feather
send "&aOtrzymałeś kompas i pióro!" to player
options:
fly-enabled: false
on left click on feather:
if {fly-enabled.%player%} is true:
set {fly-enabled.%player%} to false
send "&cWyłączyłeś latanie!" to player
set player's flying to false
else:
set {fly-enabled.%player%} to true
send "&aWłączyłeś latanie!" to player
set player's flying to true
on left click on compass:
open virtual chest with 3 rows named "&2Wybierz tryb" to player
format slot 11 of player with diamond sword named "&6PvP" with lore "&7Gra w trybie PvP" to run [set {game.mode} to "PvP"; close player]
format slot 13 of player with diamond sword named "&6BoxPvP" with lore "&7Gra w trybie BoxPvP" to run [set {game.mode} to "BoxPvP"; close player]
format slot 15 of player with diamond sword named "&6Survival" with lore "&7Gra w trybie Survival" to run [set {game.mode} to "Survival"; close player]