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); }