1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Merge pull request #622 from Refactorio/enable_server_search_command

Update redmew_commands.lua
This commit is contained in:
Lynn 2019-01-03 18:10:22 +01:00 committed by GitHub
commit 30829b20eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ Command.add(
description = 'Will kill you.', description = 'Will kill you.',
arguments = {'player'}, arguments = {'player'},
default_values = {player = false}, default_values = {player = false},
allowed_by_server = true allowed_by_server = true,
}, },
kill kill
) )
@ -208,7 +208,7 @@ Command.add(
'afk', 'afk',
{ {
description = 'Shows how long players have been afk.', description = 'Shows how long players have been afk.',
allowed_by_server = true allowed_by_server = true,
}, },
afk afk
) )
@ -217,7 +217,7 @@ Command.add(
'zoom', 'zoom',
{ {
description = 'Sets your zoom.', description = 'Sets your zoom.',
arguments = {'zoom'} arguments = {'zoom'},
}, },
zoom zoom
) )
@ -226,7 +226,7 @@ Command.add(
'find', 'find',
{ {
description = 'shows an alert on the map where the player is located', description = 'shows an alert on the map where the player is located',
arguments = {'player'} arguments = {'player'},
}, },
find_player find_player
) )
@ -234,7 +234,7 @@ Command.add(
Command.add( Command.add(
'show-rail-block', 'show-rail-block',
{ {
description = 'Toggles rail block visualisation.' description = 'Toggles rail block visualisation.',
}, },
show_rail_block show_rail_block
) )
@ -243,7 +243,7 @@ Command.add(
'server-time', 'server-time',
{ {
description = "Prints the server's time.", description = "Prints the server's time.",
allowed_by_server = true allowed_by_server = true,
}, },
server_time server_time
) )
@ -253,7 +253,8 @@ Command.add(
{ {
description = 'Search for commands matching the keyword in name or description', description = 'Search for commands matching the keyword in name or description',
arguments = {'keyword', 'page'}, arguments = {'keyword', 'page'},
default_values = {page = 1} default_values = {page = 1},
allowed_by_server = true,
}, },
search_command search_command
) )
@ -265,7 +266,7 @@ Command.add(
{ {
description = 'Reports a user to admins', description = 'Reports a user to admins',
arguments = {'player', 'message'}, arguments = {'player', 'message'},
capture_excess_arguments = true capture_excess_arguments = true,
}, },
Report.report_command Report.report_command
) )
@ -274,7 +275,7 @@ Command.add(
'regulars', 'regulars',
{ {
description = 'Prints a list of game regulars.', description = 'Prints a list of game regulars.',
allowed_by_server = true allowed_by_server = true,
}, },
UserGroups.print_regulars UserGroups.print_regulars
) )