mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Remove player privilege
This commit is contained in:
parent
2f88529d41
commit
42cf5b38d2
1 changed files with 1 additions and 7 deletions
|
@ -35,19 +35,13 @@ local function handle_kill_command(suspect, victim)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
if not minetest.registered_privileges["player"] then
|
|
||||||
minetest.register_privilege("player", {
|
|
||||||
description = S("Can change player attributes"),
|
|
||||||
give_to_singleplayer = false,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
if minetest.registered_chatcommands["kill"] then
|
if minetest.registered_chatcommands["kill"] then
|
||||||
minetest.unregister_chatcommand("kill")
|
minetest.unregister_chatcommand("kill")
|
||||||
end
|
end
|
||||||
minetest.register_chatcommand("kill", {
|
minetest.register_chatcommand("kill", {
|
||||||
params = S("[<name>]"),
|
params = S("[<name>]"),
|
||||||
description = S("Kill player or yourself"),
|
description = S("Kill player or yourself"),
|
||||||
privs = {player=true},
|
privs = {server=true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
if(param == "") then
|
if(param == "") then
|
||||||
-- Selfkill
|
-- Selfkill
|
||||||
|
|
Loading…
Reference in a new issue