diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-11-28 18:31:47 +0100 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-11-28 18:31:47 +0100 |
commit | 42a1cba61515abef577d244280a64c858cb6fe5f (patch) | |
tree | f52412cddc9c41bd0d245b78a4905ac7090aeb76 | |
parent | c4942bd38a81467322ae39951fb2c534dd700be0 (diff) |
changed position, changed priv
-rw-r--r-- | init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |