Actually Bump Version & Clean-Up

Additional Status Messages too
This commit is contained in:
C_Corp2002 authored and GitHub committed 2024-01-09 01:13:37 -05:00
1 parent ed8af21be6
commit 5b7639e279
3 files changed
+15 -8

No files matched your search

@@ -14,7 +14,7 @@ public class Config {
// DEFAULTS
public static int configVersion = 1;
public static Material controlItem = Material.COMPASS;
public static Material controlItem = Material.CLOCK;
public static int controlDistance = 64;
@@ -28,8 +28,8 @@ public class Config {
try {
controlItem = Material.getMaterial(config.getString("ControlItem"));
} catch (Exception e) {
SiegeEnginesLogger.warn("Control item material could not be found, defaulting to compass!");
controlItem = Material.COMPASS;
SiegeEnginesLogger.warn("Control item material could not be found, defaulting to clock!");
controlItem = Material.CLOCK;
}
controlDistance = config.getInt("ControlDistance");
@@ -415,7 +415,6 @@ public class ClickHandler implements Listener {
if (siegeEngineEntities == null) {
return;
}
player.sendMessage("§eReloading Ammunition");
// for each siege engine entity currently being controlled by the player
for (Entity siegeEngineEntity : siegeEngineEntities) {
@@ -466,12 +465,13 @@ public class ClickHandler implements Listener {
}
}*/
if (!siegeEngine.hasAmmunition()) {
event.getPlayer().sendMessage("§eCould not load ammunition.");
player.sendMessage("§eCould not reload ammunition.");
} else {
player.sendMessage("§eReloaded ammunition!");
}
}
}
player.sendMessage("§eReloading Propellant");
for (Entity siegeEngineEntity : siegeEngineEntities) {
if ((siegeEngineEntity.isDead()))
continue;
@@ -503,7 +503,14 @@ public class ClickHandler implements Listener {
}
}
if (!siegeEngine.hasPropellant()) {
event.getPlayer().sendMessage("§eCould not load propellant.");
player.sendMessage("§eCould not load propellant.");
} else {
player.sendMessage("§eReloaded propellant");
if (!siegeEngine.canLoadFuel()) {
player.sendMessage("§ePropellant is Full! Level: §6("+siegeEngine.ammoHolder.loadedFuel+"/"+siegeEngine.maxFuel+")");
} else {
player.sendMessage("§ePropellant level is: §6("+siegeEngine.ammoHolder.loadedFuel+"/"+siegeEngine.maxFuel+")");
}
}
}
}