bane commander NPC

This commit is contained in:
2024-12-28 07:39:15 -06:00
parent b336235ad7
commit c5f47ffcd4
3 changed files with 160 additions and 6 deletions
+10
View File
@@ -46,6 +46,10 @@ public final class Bane {
private DateTime placementDate = null;
private DateTime liveDate = null;
private BaneDefaultTimeJob defaultTimeJob;
public boolean timeSet = false;
public boolean daySet = false;
public boolean capSet = false;
public int capSize = 10;
// Internal cache for banes
private ActivateBaneJob activateBaneJob;
@@ -62,6 +66,12 @@ public final class Bane {
this.ownerUUID = rs.getInt("ownerUUID");
this.stoneUUID = rs.getInt("stoneUUID");
this.timeSet = rs.getInt("time_set") == 1;
this.daySet = rs.getInt("day_set") == 1;
this.capSet = rs.getInt("cap_set") == 1;
this.capSize = rs.getInt("cap_size");
sqlDateTime = rs.getTimestamp("placementDate");
if (sqlDateTime != null)