SteamWar/BungeeCore
Archiviert
13
2

Fix Bugs
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-02-22 16:18:16 +01:00
Ursprung 5c9394e4b0
Commit 99750ca767
4 geänderte Dateien mit 6 neuen und 7 gelöschten Zeilen

@ -1 +1 @@
Subproject commit 9b53ad748b32cc38ade1ccc606b116c0d6fbf1fb Subproject commit 588d3c9dda47a8e61e4e01eea9c915f9d853eb3b

Datei anzeigen

@ -144,8 +144,8 @@ public class ServerStarter {
public ServerStarter tutorial(ProxiedPlayer owner, Tutorial tutorial) { public ServerStarter tutorial(ProxiedPlayer owner, Tutorial tutorial) {
directory = new File(SERVER_PATH, "Tutorial"); directory = new File(SERVER_PATH, "Tutorial");
buildWithTemp(owner); buildWithTemp(owner);
tempWorld(TUTORIAL_PATH + tutorial.getId()); tempWorld(TUTORIAL_PATH + tutorial.getTutorialId());
arguments.put("tutorial", String.valueOf(tutorial.getId())); arguments.put("tutorial", String.valueOf(tutorial.getTutorialId()));
return send(owner); return send(owner);
} }

Datei anzeigen

@ -64,10 +64,9 @@ public class EventCommand extends SWCommand {
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 schemType = e.getSchemType(); SchematicType schemType = e.getSchematicType();
if (schemType != null) { if (schemType != null) {
SchematicType schematicType = SchematicType.fromDB(schemType); if (schemType.getDeadline() != null && now.isBefore(schemType.getDeadline().toInstant())) {
if (schematicType != null && schematicType.getDeadline() != null && now.isBefore(schematicType.getDeadline().toInstant())) {
Message.send("EVENT_COMING_SCHEM_DEADLINE", player, e.getDeadline()); Message.send("EVENT_COMING_SCHEM_DEADLINE", player, e.getDeadline());
} }
} }

Datei anzeigen

@ -165,6 +165,6 @@ public class TutorialCommand extends SWCommand {
} }
private File world(Tutorial tutorial) { private File world(Tutorial tutorial) {
return new File(ServerStarter.TUTORIAL_PATH, String.valueOf(tutorial.getId())); return new File(ServerStarter.TUTORIAL_PATH, String.valueOf(tutorial.getTutorialId()));
} }
} }