Give Item via Lua script / Items mit LUA Script vergeben

  • 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?

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!