Retire szutil_revokeme
The functionality is now 3+ years old in base so there is no longer any excuse for needing a polyfill.
This commit is contained in:
parent
5e79e17b89
commit
0fc497dc48
@ -1,5 +0,0 @@
|
||||
------------------------------------------------------------------------
|
||||
|
||||
This mod simply fixes the missing /revokeme admin command.
|
||||
|
||||
------------------------------------------------------------------------
|
@ -1,16 +0,0 @@
|
||||
-- LUALOCALS < ---------------------------------------------------------
|
||||
local minetest
|
||||
= minetest
|
||||
-- LUALOCALS > ---------------------------------------------------------
|
||||
|
||||
local revoke = minetest.registered_chatcommands.revoke
|
||||
if revoke and not minetest.registered_chatcommands.revokeme then
|
||||
minetest.register_chatcommand("revokeme", {
|
||||
params = "<privilege> | all",
|
||||
description = "Revoke privileges from yourself",
|
||||
privs = revoke.privs,
|
||||
func = function(pname, param)
|
||||
return revoke.func(pname, pname .. " " .. param)
|
||||
end
|
||||
})
|
||||
end
|
@ -1,3 +0,0 @@
|
||||
name = szutil_revokeme
|
||||
description = Fixes missing /revokeme admin command
|
||||
supported_games = *
|
Loading…
x
Reference in New Issue
Block a user