Personhood.
[places.git] / init.lua
index d47e014..064ffee 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -1,4 +1,5 @@
 local spawn_spawnpos = minetest.setting_get_pos("static_spawnpoint")
+local execution_pos = {x=-310,y=0,z=-40}
 
 places = {}
 
@@ -14,6 +15,10 @@ places.register_place = function (name, pos, command)
                 if not player then
                         return false, "Player not found"
                 end
+               if xban and xban.get_property(nm, "jailed") then
+                  player:setpos(execution_pos)
+                  return true, "Nice try! You can't escape!"
+               end
                player:setpos(pos)
                return true, "Teleporting to "..name.."..."
         end,
@@ -26,6 +31,7 @@ if spawn_spawnpos then
 end
 places.register_place("Origin", {x=0, y=0, z=0}, "origin")
 places.register_place("South Forest", {x=285, y=9, z=-2047}, "sf")
+places.register_place("Personhood", {x=1532, y=28, z=2971}, "ph")
 
 -- minetest.register_chatcommand("spawn", {
 --         params = "",