Cześć,
Mam taki oto kod:
command /dajst [<offline player>] [<text>]:
trigger:
if arg 1 is not set:
send "&7[&c!&7] &6| &c/dajst [nick] [diamond/iron/stone/wood]"
stop
if arg 2 is not "diamond" or "iron" or "stone" or "wood":
send "&7[&c!&7] &6| &c/dajst [nick] [diamond/iron/stone/wood]"
stop
if arg 2 is "diamond" or "iron" or "stone" or "wood":
if arg 1 is set:
set {_player} to arg 1
if arg 1 is offline:
send "&7[&c!&7] &6| &cNie znaleziono gracza."
stop
else:
set {_player} to player
give {_player} {_arg2} pickaxe named "&bKilof &5(StatTrak™) | &bDiamentowy" with lore "&8Wykopany kamień: &70"
if {_player} is not player:
send "&7[&c!&7] &6| &2Otrzymałeś diamentowy kilof od &c%player%&2." to {_player}
Chce aby z argumentu numer 2, pobierało mi poszczególną nazwę przedmiotu, czyli diamond lub iron lub stone ... W jaki sposób to dokonać? Nie mam pomysłów.