diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-06-16 16:08:54 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-06-16 16:08:54 +0200 |
commit | c4942bd38a81467322ae39951fb2c534dd700be0 (patch) | |
tree | 2e12a87e59db4a885014065399fd5a6d18e4d3db | |
parent | cf884df3f9677e43b305c3f38f9b7caf4bc4cd78 (diff) |
Added infinite banishment
-rw-r--r-- | init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |