Skip to content

Commit

Permalink
Document inf value in rollback commands (#9789)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zughy committed May 13, 2020
1 parent 7ec76e5 commit 4e997e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/game/chat.lua
Expand Up @@ -777,7 +777,7 @@ core.register_chatcommand("rollback_check", {
params = "[<range>] [<seconds>] [<limit>]",
description = "Check who last touched a node or a node near it"
.. " 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},
func = function(name, param)
if not core.settings:get_bool("enable_rollback_recording") then
Expand Down Expand Up @@ -828,7 +828,7 @@ core.register_chatcommand("rollback_check", {

core.register_chatcommand("rollback", {
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},
func = function(name, param)
if not core.settings:get_bool("enable_rollback_recording") then
Expand Down

0 comments on commit 4e997e9

Please sign in to comment.