mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
Document inf value in rollback commands (#9789)
This commit is contained in:
parent
7ec76e530d
commit
4e997e9d04
@ -777,7 +777,7 @@ core.register_chatcommand("rollback_check", {
|
|||||||
params = "[<range>] [<seconds>] [<limit>]",
|
params = "[<range>] [<seconds>] [<limit>]",
|
||||||
description = "Check who last touched a node or a node near it"
|
description = "Check who last touched a node or a node near it"
|
||||||
.. " within the time specified by <seconds>. Default: range = 0,"
|
.. " within the time specified by <seconds>. Default: range = 0,"
|
||||||
.. " seconds = 86400 = 24h, limit = 5",
|
.. " seconds = 86400 = 24h, limit = 5. Set <seconds> to inf for no time limit",
|
||||||
privs = {rollback=true},
|
privs = {rollback=true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
if not core.settings:get_bool("enable_rollback_recording") then
|
if not core.settings:get_bool("enable_rollback_recording") then
|
||||||
@ -828,7 +828,7 @@ core.register_chatcommand("rollback_check", {
|
|||||||
|
|
||||||
core.register_chatcommand("rollback", {
|
core.register_chatcommand("rollback", {
|
||||||
params = "(<name> [<seconds>]) | (:<actor> [<seconds>])",
|
params = "(<name> [<seconds>]) | (:<actor> [<seconds>])",
|
||||||
description = "Revert actions of a player. Default for <seconds> is 60",
|
description = "Revert actions of a player. Default for <seconds> is 60. Set <seconds> to inf for no time limit",
|
||||||
privs = {rollback=true},
|
privs = {rollback=true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
if not core.settings:get_bool("enable_rollback_recording") then
|
if not core.settings:get_bool("enable_rollback_recording") then
|
||||||
|
Loading…
Reference in New Issue
Block a user