Does anyone know how to giva a player an Item via Lua script? / Weiß einer von euch, wie man einem Spieler ein Item via lua script gibt?
i tried something like:
function onPlayerCommand(event)
local command = event.command;
local cmd = StringUtils:explode(command, " ");
if cmd[1] == "/give" then
event.player:giveItem(flower3,64);
end
end
and it didn't work (unsurprisingly)
any suggestions?