mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 22:54:53 +02:00
Full Distribution
This commit is contained in:
9
data/talkactions/scripts/teleport_to_pos.lua
Normal file
9
data/talkactions/scripts/teleport_to_pos.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
function onSay(player, words, param)
|
||||
if not player:getGroup():getAccess() then
|
||||
return true
|
||||
end
|
||||
|
||||
local split = param:split(",")
|
||||
local position = {x = split[1], y = split[2], z = split[3]}
|
||||
return player:teleportTo(position)
|
||||
end
|
Reference in New Issue
Block a user