Ktoś poprawi skrypt nie rozumiem błędów+ czy da się zrobić żeby np gracz permisja mvp.glowa tytuł głowy byłby mvp
command /glowka [<player>]
trigger:
if arg 1 is not set
if player's held item is head:
if player has permission admin.glow
send "&eTwoja Glowka!"
set {_e} to player's skull
set name of {_e} to "&c[ADMIN] %player%"
set line 1 of lore of {_e} to "&r"
add {_e} to player's inventory
else:
send "&cOd rangi MVP++!!" to player
if arg 1 is set
if arg 1 has permission admin.glow
send "&eglowa gracza %arg-1%"
set {_e} to arg-1 skull
set name of {_e} to "&c[ADMIN] %player%"
set line 1 of lore of {_e} to "&r"
add {_e} to player's inventory
else:
send "&eglowa gracza &6%arg-1%" to player