From 6d8c7654833bbef1dac44f846d5a09628ad0a09f Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Thu, 30 Oct 2025 15:23:40 +0100 Subject: [PATCH] Hotfix dual checking of Schematics --- .../steamwar/velocitycore/commands/CheckCommand.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/VelocityCore/src/de/steamwar/velocitycore/commands/CheckCommand.java b/VelocityCore/src/de/steamwar/velocitycore/commands/CheckCommand.java index 589fa0c5..9be08fda 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/commands/CheckCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/commands/CheckCommand.java @@ -20,6 +20,7 @@ package de.steamwar.velocitycore.commands; import com.velocitypowered.api.proxy.Player; +import com.velocitypowered.api.proxy.ServerConnection; import de.steamwar.command.SWCommand; import de.steamwar.linkage.Linked; import de.steamwar.messages.Chatter; @@ -157,6 +158,15 @@ public class CheckCommand extends SWCommand { sender.system("CHECK_SCHEMATIC_OWN_TEAM"); return; } + + CheckSession checkSession = currentSchems.get(schem.getId()); + if (checkSession != null) { + Optional serverConnection = checkSession.checker.getPlayer().getCurrentServer(); + if (serverConnection.isPresent()) { + sender.getPlayer().createConnectionRequest(serverConnection.get().getServer()).fireAndForget(); + return; + } + } new CheckSession(sender, schem); }