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:
@@ -12,7 +12,8 @@ Commands.new_command('toggle-friendly-fire', 'Toggle Friendly Fire')
|
||||
:set_defaults{force=function(player)
|
||||
return player.force
|
||||
end}
|
||||
:register(function(_, force)
|
||||
:register(function(player, force)
|
||||
force.friendly_fire = not force.friendly_fire
|
||||
return Commands.success{'expcom-ff.ff', force.friendly_fire}
|
||||
game.print{'expcom-ff.ff', player.name, force.friendly_fire}
|
||||
return Commands.success
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user