First commit
This commit is contained in:
10
app/SabrehavenServer/data/talkactions/scripts/position.lua
Normal file
10
app/SabrehavenServer/data/talkactions/scripts/position.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
function onSay(player, words, param)
|
||||
if player:getGroup():getAccess() and param ~= "" then
|
||||
local split = param:split(",")
|
||||
player:teleportTo(Position(split[1], split[2], split[3]))
|
||||
else
|
||||
local position = player:getPosition()
|
||||
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Your current position is: " .. position.x .. ", " .. position.y .. ", " .. position.z .. ".")
|
||||
end
|
||||
return false
|
||||
end
|
||||
Reference in New Issue
Block a user