mirror of
https://github.com/redstrate/Kawari.git
synced 2025-05-12 14:47:46 +00:00
This is super simple, you get the player and the args (which you can choose to split if you so choose.) I reimplemented the !setpos, and will start doing the rest of the commands.
4 lines
167 B
Lua
4 lines
167 B
Lua
function onCommand(args, player)
|
|
local parts = split(args)
|
|
player:set_position({ x = tonumber(parts[1]), y = tonumber(parts[2]), z = tonumber(parts[3]) })
|
|
end
|