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:
@@ -15,7 +15,8 @@ Commands.new_command('pollution-clear', 'Clear pollution')
|
||||
end}
|
||||
:register(function(player, surface)
|
||||
surface.clear_pollution()
|
||||
return Commands.success{'expcom-pol.clr', player.name}
|
||||
game.print{'expcom-pol.clr', player.name}
|
||||
return Commands.success
|
||||
end)
|
||||
|
||||
Commands.new_command('pollution-off', 'Disable pollution')
|
||||
@@ -28,5 +29,6 @@ Commands.new_command('pollution-off', 'Disable pollution')
|
||||
v.clear_pollution()
|
||||
end
|
||||
|
||||
return Commands.success{'expcom-pol.off', player.name}
|
||||
game.print{'expcom-pol.off', player.name}
|
||||
return Commands.success
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user