on join:
clear {wiadomosc.%player%}
on inventory click:
if "%inventory name of player's current inventory%" is "Menu - Pokazywanie":
cancel event
if "%slot%" is "0":
close player's inventory
if player's tool is not air:
set {_lore} to "&7"
if line 1 of lore of held item is set:
set {_lore} to "%lore of held item%"
replace all "||" in {_lore} with new line
set {_ilosc} to "%amount of player's tool in player's inventory%" parsed as number
if {_ilosc} is smaller than 2:
set {_ilosc} to ""
else:
set {_ilosc} to " %amount of player's tool in player's inventory%x"
if player's tool is enchanted with sharpness or smite or bane of arthropods or protection or thorns:
if player has permission "vip.vip":
json("%player%", "&7[&eLvl. &6%{lvl::%player%}%&7] &7%player% &b» &f%{message.%player%::1}%&8[%name of player's tool%%{_ilosc}%&8]||ttp:%name of player's tool%%nl%%{_lore}%||%{message.%player%::2}%")
co jest nie tak z tym 0 errorow i nie czyta tej permisji vip.vip