This commit is contained in:
@ -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> serverConnection = checkSession.checker.getPlayer().getCurrentServer();
|
||||
if (serverConnection.isPresent()) {
|
||||
sender.getPlayer().createConnectionRequest(serverConnection.get().getServer()).fireAndForget();
|
||||
return;
|
||||
}
|
||||
}
|
||||
new CheckSession(sender, schem);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user