summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-11-28 18:31:47 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-11-28 18:31:47 +0100
commit42a1cba61515abef577d244280a64c858cb6fe5f (patch)
treef52412cddc9c41bd0d245b78a4905ac7090aeb76
parentc4942bd38a81467322ae39951fb2c534dd700be0 (diff)
downloadbanish-42a1cba61515abef577d244280a64c858cb6fe5f.zip
banish-42a1cba61515abef577d244280a64c858cb6fe5f.tar.gz
banish-42a1cba61515abef577d244280a64c858cb6fe5f.tar.bz2
changed position, changed priv
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 2307a39..5bcc85e 100644
--- a/init.lua
+++ b/init.lua
@@ -60,6 +60,7 @@ end
function banish.revert (player)
local privs = minetest.get_player_privs(player);
privs.teleport = true;
+ privs.home = true;
minetest.set_player_privs(player, privs)
minetest.chat_send_player(player, "You recovered your teleport privilege. Use /spawn to return to the spawn point")
if banish.spawn[player] then
@@ -74,7 +75,7 @@ end
minetest.register_chatcommand("banish", {
params = "<person>",
description = "Banishes griefers to a far away location",
- privs = {server=true},
+ privs = {kick=true},
func = function(name, param)
if banish.banish(param, 300) then
minetest.chat_send_player(name, "Banished player " .. param)