Compare commits
5 Commits
214212ee92
...
6f3359cb12
Author | SHA1 | Date |
---|---|---|
Lars Mueller | 6f3359cb12 | |
Lars Mueller | f135a45aa3 | |
Lars Mueller | e497d483ad | |
Lars Mueller | ea1b2b9342 | |
Lars Mueller | fec9806a89 |
2
main.lua
2
main.lua
|
@ -21,6 +21,7 @@ minetest.register_privilege("cycle_limit", {
|
|||
local interact = config.interact
|
||||
|
||||
if interact then
|
||||
minetest.registered_privileges.interact.give_to_singleplayer = false
|
||||
minetest.register_privilege("interact_mods", {
|
||||
description = "Can be granted interact by mods",
|
||||
give_to_singleplayer = true,
|
||||
|
@ -34,7 +35,6 @@ if interact then
|
|||
local privs = minetest.get_player_privs(name)
|
||||
privs.interact = value or nil
|
||||
minetest.set_player_privs(name, privs)
|
||||
privs = minetest.get_player_privs(name)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 6.5 KiB |
|
@ -0,0 +1,4 @@
|
|||
cycle_limit.interact (Cycle limit interact) bool true
|
||||
cycle_limit.duration (Cycle limit duration) float 2 0.000000 1073741824.000000
|
||||
cycle_limit.name (Cycle limit name) string Switching
|
||||
cycle_limit.color (Cycle limit color) string 545AA7
|
Loading…
Reference in New Issue