summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)