mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
Update all code styles
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
local Commands = require("modules.exp_legacy.expcore.commands") --- @dep expcore.commands
|
||||
require("modules.exp_legacy.config.expcore.command_general_parse")
|
||||
|
||||
Commands.new_command('game-speed', {'expcom-speed.description'}, 'Set game speed')
|
||||
:add_param('amount', 'number-range', 0.2, 8)
|
||||
:set_flag('admin_only')
|
||||
:register(function(player, amount)
|
||||
game.speed = math.round(amount, 3)
|
||||
game.print{'expcom-speed.result', player.name, string.format('%.3f', amount)}
|
||||
return Commands.success
|
||||
end)
|
||||
Commands.new_command("game-speed", { "expcom-speed.description" }, "Set game speed")
|
||||
:add_param("amount", "number-range", 0.2, 8)
|
||||
:set_flag("admin_only")
|
||||
:register(function(player, amount)
|
||||
game.speed = math.round(amount, 3)
|
||||
game.print{ "expcom-speed.result", player.name, string.format("%.3f", amount) }
|
||||
return Commands.success
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user