mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-09-22 01:04:01 +00:00
@@ -39,10 +39,10 @@ end
|
||||
commands.artillery = Commands.new("artillery", { "exp-commands_artillery.description" })
|
||||
:register(function(player)
|
||||
if SelectArea:stop(player) then
|
||||
return Commands.status.success{ "exp-commands_artillery.exit" }
|
||||
return Commands.status.success{ "exp_util.selection_exit", { "exp-commands_artillery.selection-name" } }
|
||||
end
|
||||
SelectArea:start(player)
|
||||
return Commands.status.success{ "exp-commands_artillery.enter" }
|
||||
return Commands.status.success{ "exp_util.selection_enter", { "exp-commands_artillery.selection-name" } }
|
||||
end) --[[@as any]]
|
||||
|
||||
--- when an area is selected to add protection to the area
|
||||
|
||||
@@ -17,11 +17,11 @@ local commands = {}
|
||||
commands.lawnmower = Commands.new("lawnmower", { "exp-commands_lawnmower.description" })
|
||||
:register(function(player)
|
||||
if SelectArea:stop(player) then
|
||||
return Commands.status.success{ "exp-commands_lawnmower.exit" }
|
||||
return Commands.status.success{ "exp_util.selection_exit", { "exp-commands_lawnmower.selection-name" } }
|
||||
end
|
||||
|
||||
SelectArea:start(player)
|
||||
return Commands.status.success{ "exp-commands_lawnmower.enter" }
|
||||
return Commands.status.success{ "exp_util.selection_enter", { "exp-commands_lawnmower.selection-name" } }
|
||||
end) --[[@as any]]
|
||||
|
||||
--- When an area is selected to be handled
|
||||
|
||||
@@ -16,10 +16,10 @@ local commands = {}
|
||||
commands.repair = Commands.new("repair", { "exp-commands_repair.description" })
|
||||
:register(function(player)
|
||||
if SelectArea:stop(player) then
|
||||
return Commands.status.success{ "exp-commands_repair.exit" }
|
||||
return Commands.status.success{ "exp_util.selection_exit", { "exp-commands_repair.selection-name" } }
|
||||
end
|
||||
SelectArea:start(player)
|
||||
return Commands.status.success{ "exp-commands_repair.enter" }
|
||||
return Commands.status.success{ "exp_util.selection_enter", { "exp-commands_repair.selection-name" } }
|
||||
end)
|
||||
|
||||
--- When an area is selected to be converted to water
|
||||
|
||||
@@ -64,11 +64,10 @@ commands.clear_blueprints_surface = Commands.new("clear-blueprints-surface", { "
|
||||
commands.clear_blueprints = Commands.new("clear-blueprints", { "exp-commands_surface.description-blueprints" })
|
||||
:register(function(player)
|
||||
if SelectArea:stop(player) then
|
||||
return Commands.status.success{ "exp-commands_surface.exit" }
|
||||
return Commands.status.success{ "exp_util.selection_exit", { "exp-commands_surface.selection-name" } }
|
||||
end
|
||||
|
||||
SelectArea:start(player)
|
||||
return Commands.status.success{ "exp-commands_surface.enter" }
|
||||
return Commands.status.success{ "exp_util.selection_enter", { "exp-commands_surface.selection-name" } }
|
||||
end) --[[@as any]]
|
||||
|
||||
--- When an area is selected
|
||||
|
||||
@@ -25,7 +25,7 @@ local commands = {}
|
||||
commands.waterfill = Commands.new("waterfill", { "exp-commands_waterfill.description" })
|
||||
:register(function(player)
|
||||
if SelectArea:stop(player) then
|
||||
return Commands.status.success{ "exp-commands_waterfill.exit" }
|
||||
return Commands.status.success{ "exp_util.selection_exit", { "exp-commands_lawnmower.selection-name" } }
|
||||
end
|
||||
local item_count_cliff = player.get_item_count("cliff-explosives")
|
||||
local item_count_craft = math.min(math.floor(player.get_item_count("explosives") / 10), player.get_item_count("barrel"), player.get_item_count("grenade"))
|
||||
@@ -34,7 +34,7 @@ commands.waterfill = Commands.new("waterfill", { "exp-commands_waterfill.descrip
|
||||
return Commands.status.error{ "exp-commands_waterfill.requires-explosives" }
|
||||
else
|
||||
SelectArea:start(player)
|
||||
return Commands.status.success{ "exp-commands_waterfill.enter" }
|
||||
return Commands.status.success{ "exp_util.selection_enter", { "exp-commands_lawnmower.selection-name" } }
|
||||
end
|
||||
end) --[[@as any]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user