mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Make commands display in game chat (#297)
* Update friendly-fire.lua * Update research.lua * Update friendly-fire.lua * Update speed.lua * Update cheat-mode.lua * Update bot-queue.lua * Update train.lua * Update pollution.lua * Update commands.cfg * Update commands.cfg * Update commands.cfg * Update cheat-mode.lua * Update research.lua * Update commands.cfg * Update commands.cfg * Update commands.cfg
This commit is contained in:
@@ -9,7 +9,8 @@ require 'config.expcore.command_general_parse'
|
||||
Commands.new_command('game-speed', 'Set game speed')
|
||||
:add_param('amount', 'number-range', 0.2, 1)
|
||||
:set_flag('admin_only')
|
||||
:register(function(_, amount)
|
||||
:register(function(player, amount)
|
||||
game.speed = math.round(amount, 3)
|
||||
return Commands.success{'expcom-speed.result', string.format('%.3f', amount)}
|
||||
game.print{'expcom-speed.result', player.name, string.format('%.3f', amount)}
|
||||
return Commands.success
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user