mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2024-08-20 13:24:07 +02:00
Made registering new priv configurable; fixed timeout value
This commit is contained in:
parent
0404719dab
commit
973092d27d
15
init.lua
15
init.lua
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
local timeout_delay = 10
|
local timeout_delay = 60
|
||||||
|
|
||||||
-- Set to true to register tpr_admin priv
|
-- Set to true to register tpr_admin priv
|
||||||
--local regnewpriv = false
|
local regnewpriv = false
|
||||||
|
|
||||||
local version = "0.2"
|
local version = "0.2"
|
||||||
|
|
||||||
@ -156,11 +156,12 @@ end
|
|||||||
|
|
||||||
--Initalize Permissions.
|
--Initalize Permissions.
|
||||||
|
|
||||||
minetest.register_privilege("tpr_admin", {
|
if regnewpriv then
|
||||||
description = "Permission to override teleport to other players. UNFINISHED",
|
minetest.register_privilege("tpr_admin", {
|
||||||
give_to_singleplayer = true
|
description = "Permission to override teleport to other players. UNFINISHED",
|
||||||
})
|
give_to_singleplayer = true
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
--Initalize Commands.
|
--Initalize Commands.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user