From 8a01394092c973e52c42b1f11fc64238b0b7c8e7 Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Fri, 28 Jul 2023 21:52:07 +0200 Subject: [PATCH] Make things actually build --- .../de/steamwar/bausystem/features/region/ColorCommand.java | 2 +- .../steamwar/bausystem/features/region/RegionCommand.java | 4 ++-- .../de/steamwar/bausystem/features/region/ResetCommand.java | 5 +++-- .../bausystem/features/region/TestblockCommand.java | 6 ++++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/region/ColorCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/region/ColorCommand.java index 1213a314..06c63753 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/ColorCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/ColorCommand.java @@ -64,7 +64,7 @@ public class ColorCommand extends SWCommand { } region.set(Flag.COLOR, color); try { - region.reset(null, RegionType.NORMAL, RegionExtensionType.NORMAL, true, true); + region.reset(null, RegionType.NORMAL, RegionExtensionType.NORMAL, true, true,false,false); RegionUtils.message(region, "REGION_REGION_COLORED"); RegionUtils.message(region, "REGION_REGION_COLORED_FAILED"); } catch (IOException e) { diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/region/RegionCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/region/RegionCommand.java index 0288fbae..11100c81 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/RegionCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/RegionCommand.java @@ -99,7 +99,7 @@ public class RegionCommand extends SWCommand { if(checkGlobalRegion(region, p)) return; try { - region.reset(null, RegionType.NORMAL, RegionExtensionType.NORMAL, true, false); + region.reset(null, RegionType.NORMAL, RegionExtensionType.NORMAL, true, false,false,false); RegionUtils.message(region, "REGION_REGION_RESTORED"); } catch (IOException e) { BauSystem.MESSAGE.send("REGION_REGION_FAILED_RESTORE", p); @@ -118,7 +118,7 @@ public class RegionCommand extends SWCommand { } try { - region.reset(node, RegionType.NORMAL, RegionExtensionType.NORMAL, true); + region.reset(node, RegionType.NORMAL, RegionExtensionType.NORMAL, true,false,false,false); RegionUtils.message(region, "REGION_REGION_RESTORED"); } catch (IOException e) { BauSystem.MESSAGE.send("REGION_REGION_FAILED_RESTORE", p); diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/region/ResetCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/region/ResetCommand.java index d057d59f..97bd6711 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/ResetCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/ResetCommand.java @@ -25,6 +25,7 @@ import de.steamwar.bausystem.config.BauServer; import de.steamwar.bausystem.region.GlobalRegion; import de.steamwar.bausystem.region.Region; import de.steamwar.bausystem.region.RegionUtils; +import de.steamwar.bausystem.region.utils.RegionExtensionType; import de.steamwar.bausystem.region.utils.RegionType; import de.steamwar.command.SWCommand; import de.steamwar.command.TypeValidator; @@ -54,7 +55,7 @@ public class ResetCommand extends SWCommand { Region region = regionCheck(p); if (region == null) return; try { - region.reset(null, RegionType.NORMAL); + region.reset(null,RegionType.NORMAL, RegionExtensionType.NORMAL,false,false,false,false); RegionUtils.message(region, "REGION_RESET_RESETED"); } catch (IOException e) { BauSystem.MESSAGE.send("REGION_RESET_ERROR", p); @@ -80,7 +81,7 @@ public class ResetCommand extends SWCommand { return; } try { - region.reset(node, RegionType.NORMAL); + region.reset(node, RegionType.NORMAL,RegionExtensionType.NORMAL,false,false,false,false); RegionUtils.message(region, "REGION_RESET_RESETED"); } catch (IOException e) { BauSystem.MESSAGE.send("REGION_RESET_ERROR", p); diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/region/TestblockCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/region/TestblockCommand.java index 9bff99b4..00fe8fc8 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/TestblockCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/TestblockCommand.java @@ -26,10 +26,12 @@ import de.steamwar.bausystem.region.Region; import de.steamwar.bausystem.region.RegionUtils; import de.steamwar.bausystem.region.utils.RegionExtensionType; import de.steamwar.bausystem.region.utils.RegionType; -import de.steamwar.command.*; +import de.steamwar.command.PreviousArguments; +import de.steamwar.command.SWCommand; +import de.steamwar.command.TypeMapper; +import de.steamwar.command.TypeValidator; import de.steamwar.linkage.Linked; import de.steamwar.linkage.LinkedInstance; -import de.steamwar.command.PreviousArguments; import de.steamwar.sql.Punishment; import de.steamwar.sql.SchematicNode; import de.steamwar.sql.SteamwarUser;