mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 09:39:20 +02:00
15 lines
285 B
Lua
15 lines
285 B
Lua
function onSay(player, words, param)
|
|
if not player:getGroup():getAccess() then
|
|
return true
|
|
end
|
|
|
|
local target = Creature(param)
|
|
if target == nil then
|
|
player:sendCancelMessage("Creature not found.")
|
|
return false
|
|
end
|
|
|
|
player:teleportTo(target:getPosition())
|
|
return false
|
|
end
|