mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
Full Distribution
This commit is contained in:
17
data/talkactions/scripts/up.lua
Normal file
17
data/talkactions/scripts/up.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
function onSay(player, words, param)
|
||||
if not player:getGroup():getAccess() then
|
||||
return true
|
||||
end
|
||||
|
||||
local position = player:getPosition()
|
||||
position.z = position.z - 1
|
||||
|
||||
local tile = Tile(position)
|
||||
if tile == nil or tile:getGround() == nil then
|
||||
player:sendCancelMessage("You cannot teleport there.")
|
||||
return false
|
||||
end
|
||||
|
||||
player:teleportTo(position)
|
||||
return false
|
||||
end
|
Reference in New Issue
Block a user