mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Allow faster game speeds (#306)
This commit is contained in:
@@ -7,7 +7,7 @@ local Commands = require 'expcore.commands' --- @dep expcore.commands
|
|||||||
require 'config.expcore.command_general_parse'
|
require 'config.expcore.command_general_parse'
|
||||||
|
|
||||||
Commands.new_command('game-speed', 'Set game speed')
|
Commands.new_command('game-speed', 'Set game speed')
|
||||||
:add_param('amount', 'number-range', 0.2, 1)
|
:add_param('amount', 'number-range', 0.2, 8)
|
||||||
:set_flag('admin_only')
|
:set_flag('admin_only')
|
||||||
:register(function(player, amount)
|
:register(function(player, amount)
|
||||||
game.speed = math.round(amount, 3)
|
game.speed = math.round(amount, 3)
|
||||||
|
|||||||
Reference in New Issue
Block a user