SteamWar/BungeeCore
Archiviert
13
2

Update deadline

Dieser Commit ist enthalten in:
yoyosource 2022-06-15 17:38:30 +02:00 committet von Lixfel
Ursprung 4d8771eba1
Commit 7302dd715c
3 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -81,7 +81,7 @@ public class EventCommand extends BasicCommand {
if(now.isBefore(e.getDeadline().toInstant())) {
Message.send("EVENT_COMING_DEADLINE", player, e.getDeadline());
}
String checkType = e.getCheckType();
String checkType = e.getSchemType();
if (checkType != null) {
SchematicType schematicType = SchematicType.fromDB(checkType);
if (schematicType != null && schematicType.deadline() != null && now.isBefore(schematicType.deadline().toInstant())) {

Datei anzeigen

@ -41,7 +41,7 @@ public class Event {
private final boolean publicSchemsOnly;
private final boolean spectateSystem;
private final Timestamp deadline;
private final String checkType;
private final String schemType;
private static Event current = null;
@ -54,7 +54,7 @@ public class Event {
this.publicSchemsOnly = rs.getBoolean("PublicSchemsOnly");
this.spectateSystem = rs.getBoolean("SpectateSystem");
this.deadline = rs.getTimestamp("Deadline");
this.checkType = rs.getString("CheckType");
this.schemType = rs.getString("SchemType");
}
public static Event get(){
@ -125,7 +125,7 @@ public class Event {
public Timestamp getDeadline() {
return deadline;
}
public String getCheckType() {
return checkType;
public String getSchemType() {
return schemType;
}
}

Datei anzeigen

@ -238,7 +238,7 @@ EVENT_NO_CURRENT=§cThere is no event taking place currently
EVENT_COMING=§eUpcoming events§8:
EVENT_COMING_EVENT=§7{0}§8-§7{1}§8: §e{2}
EVENT_COMING_DEADLINE=§7 Registration deadline§8: §7{0}
EVENT_COMING_SCHEM_DEADLINE=§7 Schematic deadline§8: §7{0}
EVENT_COMING_SCHEM_DEADLINE=§7 Submission deadline§8: §7{0}
EVENT_COMING_TEAMS=§7 With§8:{0}
EVENT_COMING_TEAM= §{0}{1}
EVENT_CURRENT_EVENT=§e§l{0}