1
0
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-06-23 10:00:26 +02:00
Ursprung 148067e42b
Commit e327c939f7
2 geänderte Dateien mit 3 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -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());
}

Datei anzeigen

@ -44,7 +44,6 @@ public class SchematicType {
List<SchematicType> tmpTypes = new LinkedList<>();
Map<String, SchematicType> tmpFromDB = new HashMap<>();
Map<SchematicType, SchematicType> tmpFightType = new HashMap<>();
Map<Integer, SchematicType> 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);
}
}
}