From c4942bd38a81467322ae39951fb2c534dd700be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Thu, 16 Jun 2016 16:08:54 +0200 Subject: Added infinite banishment --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 4c0db4a..2307a39 100644 --- a/init.lua +++ b/init.lua @@ -51,7 +51,9 @@ function banish.banish(param, time) -- player:setpos(banish_pos) -- end) minetest.chat_send_player(param, "You were banished! You can try to walk back. You will be able to return to spawn in 5 minutes using the /spawn command.") - minetest.after(time, banish.revert, param) + if not time == nil then -- infinite banishment + minetest.after(time, banish.revert, param) + end return true end -- cgit v1.2.3