From 7302dd715c95c09723cbf42761ca7755bd01d43f Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 15 Jun 2022 17:38:30 +0200 Subject: [PATCH] Update deadline --- src/de/steamwar/bungeecore/commands/EventCommand.java | 2 +- src/de/steamwar/bungeecore/sql/Event.java | 8 ++++---- src/de/steamwar/messages/BungeeCore.properties | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/EventCommand.java b/src/de/steamwar/bungeecore/commands/EventCommand.java index fc49281..6e2c66c 100644 --- a/src/de/steamwar/bungeecore/commands/EventCommand.java +++ b/src/de/steamwar/bungeecore/commands/EventCommand.java @@ -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())) { diff --git a/src/de/steamwar/bungeecore/sql/Event.java b/src/de/steamwar/bungeecore/sql/Event.java index 41a5b03..ab4cede 100644 --- a/src/de/steamwar/bungeecore/sql/Event.java +++ b/src/de/steamwar/bungeecore/sql/Event.java @@ -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; } } diff --git a/src/de/steamwar/messages/BungeeCore.properties b/src/de/steamwar/messages/BungeeCore.properties index 6f187dd..7dfaa7c 100644 --- a/src/de/steamwar/messages/BungeeCore.properties +++ b/src/de/steamwar/messages/BungeeCore.properties @@ -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}