mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-03 14:38:53 +00:00
Actually Bump Version & Clean-Up
Additional Status Messages too
This commit is contained in:
1 parent
ed8af21be6
commit
5b7639e279
3 files changed
+15
-8
No files matched your search
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>com.github.alathra</groupId>
|
<groupId>com.github.alathra</groupId>
|
||||||
<artifactId>SiegeEngines</artifactId>
|
<artifactId>SiegeEngines</artifactId>
|
||||||
<version>0.5.5</version>
|
<version>0.6.0</version>
|
||||||
|
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>SiegeEngines</name>
|
<name>SiegeEngines</name>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public class Config {
|
|||||||
// DEFAULTS
|
// DEFAULTS
|
||||||
public static int configVersion = 1;
|
public static int configVersion = 1;
|
||||||
|
|
||||||
public static Material controlItem = Material.COMPASS;
|
public static Material controlItem = Material.CLOCK;
|
||||||
|
|
||||||
public static int controlDistance = 64;
|
public static int controlDistance = 64;
|
||||||
|
|
||||||
@@ -28,8 +28,8 @@ public class Config {
|
|||||||
try {
|
try {
|
||||||
controlItem = Material.getMaterial(config.getString("ControlItem"));
|
controlItem = Material.getMaterial(config.getString("ControlItem"));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
SiegeEnginesLogger.warn("Control item material could not be found, defaulting to compass!");
|
SiegeEnginesLogger.warn("Control item material could not be found, defaulting to clock!");
|
||||||
controlItem = Material.COMPASS;
|
controlItem = Material.CLOCK;
|
||||||
}
|
}
|
||||||
|
|
||||||
controlDistance = config.getInt("ControlDistance");
|
controlDistance = config.getInt("ControlDistance");
|
||||||
|
|||||||
@@ -415,7 +415,6 @@ public class ClickHandler implements Listener {
|
|||||||
if (siegeEngineEntities == null) {
|
if (siegeEngineEntities == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
player.sendMessage("§eReloading Ammunition");
|
|
||||||
|
|
||||||
// for each siege engine entity currently being controlled by the player
|
// for each siege engine entity currently being controlled by the player
|
||||||
for (Entity siegeEngineEntity : siegeEngineEntities) {
|
for (Entity siegeEngineEntity : siegeEngineEntities) {
|
||||||
@@ -466,12 +465,13 @@ public class ClickHandler implements Listener {
|
|||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
if (!siegeEngine.hasAmmunition()) {
|
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) {
|
for (Entity siegeEngineEntity : siegeEngineEntities) {
|
||||||
if ((siegeEngineEntity.isDead()))
|
if ((siegeEngineEntity.isDead()))
|
||||||
continue;
|
continue;
|
||||||
@@ -503,7 +503,14 @@ public class ClickHandler implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!siegeEngine.hasPropellant()) {
|
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+")");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user