mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-22 21:01:25 +01: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
|
||||
--local regnewpriv = false
|
||||
local regnewpriv = false
|
||||
|
||||
local version = "0.2"
|
||||
|
||||
@ -156,11 +156,12 @@ end
|
||||
|
||||
--Initalize Permissions.
|
||||
|
||||
minetest.register_privilege("tpr_admin", {
|
||||
description = "Permission to override teleport to other players. UNFINISHED",
|
||||
give_to_singleplayer = true
|
||||
})
|
||||
|
||||
if regnewpriv then
|
||||
minetest.register_privilege("tpr_admin", {
|
||||
description = "Permission to override teleport to other players. UNFINISHED",
|
||||
give_to_singleplayer = true
|
||||
})
|
||||
end
|
||||
|
||||
--Initalize Commands.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user