From f216ed0f0b745e95698166a7a10a458bead4bdb5 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Thu, 30 Oct 2025 15:18:09 +0100 Subject: [PATCH] Hotfix CheckCommand --- VelocityCore/src/de/steamwar/velocitycore/ArenaMode.java | 2 ++ .../src/de/steamwar/velocitycore/commands/CheckCommand.java | 1 + 2 files changed, 3 insertions(+) diff --git a/VelocityCore/src/de/steamwar/velocitycore/ArenaMode.java b/VelocityCore/src/de/steamwar/velocitycore/ArenaMode.java index 87e2bf92..48a40870 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/ArenaMode.java +++ b/VelocityCore/src/de/steamwar/velocitycore/ArenaMode.java @@ -61,6 +61,8 @@ public class ArenaMode { } if (gameModeConfig.Schematic.loaded && gameModeConfig.Schematic.Type != SchematicType.Normal) { bySchemType.put(gameModeConfig.Schematic.Type, gameModeConfig); + SchematicType checkType = gameModeConfig.Schematic.Type.checkType(); + if (checkType != null) bySchemType.put(checkType, gameModeConfig); } } } diff --git a/VelocityCore/src/de/steamwar/velocitycore/commands/CheckCommand.java b/VelocityCore/src/de/steamwar/velocitycore/commands/CheckCommand.java index 2d9f4df8..589fa0c5 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/commands/CheckCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/commands/CheckCommand.java @@ -100,6 +100,7 @@ public class CheckCommand extends SWCommand { for (SchematicNode schematic : schematicList) { GameModeConfig gameModeConfig = ArenaMode.getBySchemType(schematic.getSchemtype()); + if (gameModeConfig == null) gameModeConfig = GameModeConfig.getDefaults(); CheckSession current = currentSchems.get(schematic.getId()); ClickEvent clickEvent = null; Message hoverMessage = null;