mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-15 15:04:53 +02:00
Full Distribution
This commit is contained in:
10
data/talkactions/scripts/position.lua
Normal file
10
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