@@ -92,7 +92,7 @@ core.register_chatcommand("admin", {
92
92
})
93
93
94
94
core .register_chatcommand (" privs" , {
95
- params = " <name>" ,
95
+ params = " [ <name>] " ,
96
96
description = " Print privileges of player" ,
97
97
func = function (caller , param )
98
98
param = param :trim ()
@@ -145,7 +145,7 @@ local function handle_grant_command(caller, grantname, grantprivstr)
145
145
end
146
146
147
147
core .register_chatcommand (" grant" , {
148
- params = " <name> <privilege>| all" ,
148
+ params = " <name> ( <privilege> | all) " ,
149
149
description = " Give privilege to player" ,
150
150
func = function (name , param )
151
151
local grantname , grantprivstr = string.match (param , " ([^ ]+) (.+)" )
@@ -157,7 +157,7 @@ core.register_chatcommand("grant", {
157
157
})
158
158
159
159
core .register_chatcommand (" grantme" , {
160
- params = " <privilege>| all" ,
160
+ params = " <privilege> | all" ,
161
161
description = " Grant privileges to yourself" ,
162
162
func = function (name , param )
163
163
if param == " " then
@@ -168,7 +168,7 @@ core.register_chatcommand("grantme", {
168
168
})
169
169
170
170
core .register_chatcommand (" revoke" , {
171
- params = " <name> <privilege>| all" ,
171
+ params = " <name> ( <privilege> | all) " ,
172
172
description = " Remove privilege from player" ,
173
173
privs = {},
174
174
func = function (name , param )
@@ -305,7 +305,7 @@ core.register_chatcommand("remove_player", {
305
305
})
306
306
307
307
core .register_chatcommand (" teleport" , {
308
- params = " <X>,<Y>,<Z> | <to_name> | <name> <X>,<Y>,<Z> | <name> <to_name>" ,
308
+ params = " <X>,<Y>,<Z> | <to_name> | ( <name> <X>,<Y>,<Z>) | ( <name> <to_name>) " ,
309
309
description = " Teleport to player or position" ,
310
310
privs = {teleport = true },
311
311
func = function (name , param )
@@ -413,7 +413,7 @@ core.register_chatcommand("teleport", {
413
413
})
414
414
415
415
core .register_chatcommand (" set" , {
416
- params = " [-n] <name> <value> | <name>" ,
416
+ params = " ( [-n] <name> <value>) | <name>" ,
417
417
description = " Set or read server configuration setting" ,
418
418
privs = {server = true },
419
419
func = function (name , param )
@@ -468,9 +468,9 @@ local function emergeblocks_progress_update(ctx)
468
468
end
469
469
470
470
core .register_chatcommand (" emergeblocks" , {
471
- params = " (here [radius]) | (<pos1> <pos2>)" ,
471
+ params = " (here [< radius> ]) | (<pos1> <pos2>)" ,
472
472
description = " Load (or, if nonexistent, generate) map blocks "
473
- .. " contained in area pos1 to pos2" ,
473
+ .. " contained in area pos1 to pos2 (<pos1> and <pos2> must be in parentheses) " ,
474
474
privs = {server = true },
475
475
func = function (name , param )
476
476
local p1 , p2 = parse_range_str (name , param )
@@ -494,8 +494,9 @@ core.register_chatcommand("emergeblocks", {
494
494
})
495
495
496
496
core .register_chatcommand (" deleteblocks" , {
497
- params = " (here [radius]) | (<pos1> <pos2>)" ,
498
- description = " Delete map blocks contained in area pos1 to pos2" ,
497
+ params = " (here [<radius>]) | (<pos1> <pos2>)" ,
498
+ description = " Delete map blocks contained in area pos1 to pos2 "
499
+ .. " (<pos1> and <pos2> must be in parentheses)" ,
499
500
privs = {server = true },
500
501
func = function (name , param )
501
502
local p1 , p2 = parse_range_str (name , param )
@@ -513,8 +514,9 @@ core.register_chatcommand("deleteblocks", {
513
514
})
514
515
515
516
core .register_chatcommand (" fixlight" , {
516
- params = " (here [radius]) | (<pos1> <pos2>)" ,
517
- description = " Resets lighting in the area between pos1 and pos2" ,
517
+ params = " (here [<radius>]) | (<pos1> <pos2>)" ,
518
+ description = " Resets lighting in the area between pos1 and pos2 "
519
+ .. " (<pos1> and <pos2> must be in parentheses)" ,
518
520
privs = {server = true },
519
521
func = function (name , param )
520
522
local p1 , p2 = parse_range_str (name , param )
@@ -661,7 +663,7 @@ core.register_on_punchnode(function(pos, node, puncher)
661
663
end )
662
664
663
665
core .register_chatcommand (" rollback_check" , {
664
- params = " [<range>] [<seconds>] [limit]" ,
666
+ params = " [<range>] [<seconds>] [< limit> ]" ,
665
667
description = " Check who last touched a node or a node near it"
666
668
.. " within the time specified by <seconds>. Default: range = 0,"
667
669
.. " seconds = 86400 = 24h, limit = 5" ,
@@ -714,7 +716,7 @@ core.register_chatcommand("rollback_check", {
714
716
})
715
717
716
718
core .register_chatcommand (" rollback" , {
717
- params = " <player name> [<seconds>] | :<actor> [<seconds>]" ,
719
+ params = " (< name> [<seconds>]) | ( :<actor> [<seconds>]) " ,
718
720
description = " Revert actions of a player. Default for <seconds> is 60" ,
719
721
privs = {rollback = true },
720
722
func = function (name , param )
@@ -806,8 +808,8 @@ core.register_chatcommand("days", {
806
808
})
807
809
808
810
core .register_chatcommand (" shutdown" , {
809
- description = " Shutdown server " ,
810
- params = " [delay_in_seconds (non-negative number, or -1 to cancel)] [reconnect] [message] " ,
811
+ params = " [<delay_in_seconds> | -1] [reconnect] [<message>] " ,
812
+ description = " Shutdown server (-1 cancels a delayed shutdown) " ,
811
813
privs = {server = true },
812
814
func = function (name , param )
813
815
local delay , reconnect , message = param :match (" ([^ ][-]?[0-9]+)([^ ]+)(.*)" )
@@ -845,7 +847,7 @@ core.register_chatcommand("ban", {
845
847
})
846
848
847
849
core .register_chatcommand (" unban" , {
848
- params = " <name/ip >" ,
850
+ params = " <name> | <IP_address >" ,
849
851
description = " Remove IP ban" ,
850
852
privs = {ban = true },
851
853
func = function (name , param )
@@ -858,7 +860,7 @@ core.register_chatcommand("unban", {
858
860
})
859
861
860
862
core .register_chatcommand (" kick" , {
861
- params = " <name> [reason]" ,
863
+ params = " <name> [< reason> ]" ,
862
864
description = " Kick a player" ,
863
865
privs = {kick = true },
864
866
func = function (name , param )
@@ -877,7 +879,7 @@ core.register_chatcommand("kick", {
877
879
})
878
880
879
881
core .register_chatcommand (" clearobjects" , {
880
- params = " [full| quick]" ,
882
+ params = " [full | quick]" ,
881
883
description = " Clear all objects in world" ,
882
884
privs = {server = true },
883
885
func = function (name , param )
@@ -923,7 +925,7 @@ core.register_chatcommand("msg", {
923
925
})
924
926
925
927
core .register_chatcommand (" last-login" , {
926
- params = " [name]" ,
928
+ params = " [< name> ]" ,
927
929
description = " Get the last login time of a player" ,
928
930
func = function (name , param )
929
931
if param == " " then
@@ -940,7 +942,7 @@ core.register_chatcommand("last-login", {
940
942
})
941
943
942
944
core .register_chatcommand (" clearinv" , {
943
- params = " [name]" ,
945
+ params = " [< name> ]" ,
944
946
description = " Clear the inventory of yourself or another player" ,
945
947
func = function (name , param )
946
948
local player
0 commit comments