Update deadline
Dieser Commit ist enthalten in:
Ursprung
4d8771eba1
Commit
7302dd715c
@ -81,7 +81,7 @@ public class EventCommand extends BasicCommand {
|
|||||||
if(now.isBefore(e.getDeadline().toInstant())) {
|
if(now.isBefore(e.getDeadline().toInstant())) {
|
||||||
Message.send("EVENT_COMING_DEADLINE", player, e.getDeadline());
|
Message.send("EVENT_COMING_DEADLINE", player, e.getDeadline());
|
||||||
}
|
}
|
||||||
String checkType = e.getCheckType();
|
String checkType = e.getSchemType();
|
||||||
if (checkType != null) {
|
if (checkType != null) {
|
||||||
SchematicType schematicType = SchematicType.fromDB(checkType);
|
SchematicType schematicType = SchematicType.fromDB(checkType);
|
||||||
if (schematicType != null && schematicType.deadline() != null && now.isBefore(schematicType.deadline().toInstant())) {
|
if (schematicType != null && schematicType.deadline() != null && now.isBefore(schematicType.deadline().toInstant())) {
|
||||||
|
@ -41,7 +41,7 @@ public class Event {
|
|||||||
private final boolean publicSchemsOnly;
|
private final boolean publicSchemsOnly;
|
||||||
private final boolean spectateSystem;
|
private final boolean spectateSystem;
|
||||||
private final Timestamp deadline;
|
private final Timestamp deadline;
|
||||||
private final String checkType;
|
private final String schemType;
|
||||||
|
|
||||||
private static Event current = null;
|
private static Event current = null;
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ public class Event {
|
|||||||
this.publicSchemsOnly = rs.getBoolean("PublicSchemsOnly");
|
this.publicSchemsOnly = rs.getBoolean("PublicSchemsOnly");
|
||||||
this.spectateSystem = rs.getBoolean("SpectateSystem");
|
this.spectateSystem = rs.getBoolean("SpectateSystem");
|
||||||
this.deadline = rs.getTimestamp("Deadline");
|
this.deadline = rs.getTimestamp("Deadline");
|
||||||
this.checkType = rs.getString("CheckType");
|
this.schemType = rs.getString("SchemType");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Event get(){
|
public static Event get(){
|
||||||
@ -125,7 +125,7 @@ public class Event {
|
|||||||
public Timestamp getDeadline() {
|
public Timestamp getDeadline() {
|
||||||
return deadline;
|
return deadline;
|
||||||
}
|
}
|
||||||
public String getCheckType() {
|
public String getSchemType() {
|
||||||
return checkType;
|
return schemType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ EVENT_NO_CURRENT=§cThere is no event taking place currently
|
|||||||
EVENT_COMING=§eUpcoming events§8:
|
EVENT_COMING=§eUpcoming events§8:
|
||||||
EVENT_COMING_EVENT=§7{0}§8-§7{1}§8: §e{2}
|
EVENT_COMING_EVENT=§7{0}§8-§7{1}§8: §e{2}
|
||||||
EVENT_COMING_DEADLINE=§7 Registration deadline§8: §7{0}
|
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_TEAMS=§7 With§8:{0}
|
||||||
EVENT_COMING_TEAM= §{0}{1}
|
EVENT_COMING_TEAM= §{0}{1}
|
||||||
EVENT_CURRENT_EVENT=§e§l{0}
|
EVENT_CURRENT_EVENT=§e§l{0}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren