diff --git a/src/de/steamwar/bungeecore/commands/EventCommand.java b/src/de/steamwar/bungeecore/commands/EventCommand.java index 6e2c66c0..75f718f8 100644 --- a/src/de/steamwar/bungeecore/commands/EventCommand.java +++ b/src/de/steamwar/bungeecore/commands/EventCommand.java @@ -81,9 +81,9 @@ public class EventCommand extends BasicCommand { if(now.isBefore(e.getDeadline().toInstant())) { Message.send("EVENT_COMING_DEADLINE", player, e.getDeadline()); } - String checkType = e.getSchemType(); - if (checkType != null) { - SchematicType schematicType = SchematicType.fromDB(checkType); + String schemType = e.getSchemType(); + if (schemType != null) { + SchematicType schematicType = SchematicType.fromDB(schemType); if (schematicType != null && schematicType.deadline() != null && now.isBefore(schematicType.deadline().toInstant())) { Message.send("EVENT_COMING_SCHEM_DEADLINE", player, e.getDeadline()); } diff --git a/src/de/steamwar/bungeecore/sql/SchematicType.java b/src/de/steamwar/bungeecore/sql/SchematicType.java index f63633e2..95920708 100644 --- a/src/de/steamwar/bungeecore/sql/SchematicType.java +++ b/src/de/steamwar/bungeecore/sql/SchematicType.java @@ -44,7 +44,6 @@ public class SchematicType { List tmpTypes = new LinkedList<>(); Map tmpFromDB = new HashMap<>(); Map tmpFightType = new HashMap<>(); - Map tmpEventType = new HashMap<>(); tmpTypes.add(Normal); tmpFromDB.put(Normal.name().toLowerCase(), Normal); @@ -94,11 +93,6 @@ public class SchematicType { if(checktype != null) tmpFightType.put(checktype, current); tmpFromDB.put(type.toLowerCase(), current); - - Integer eventID = config.get("eventID", null); - if (eventID != null) { - tmpEventType.put(eventID, current); - } } }