Fix timing issue and send in problematic
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
b7938d9456
Commit
2f7d727052
@ -187,9 +187,6 @@ public class CheckCommand extends BasicCommand {
|
||||
this.startTime = Timestamp.from(Instant.now());
|
||||
this.checkList = checkQuestions.get(schematic.getSchemType()).listIterator();
|
||||
|
||||
currentCheckers.put(checker, this);
|
||||
currentSchems.put(schematic.getSchemID(), this);
|
||||
|
||||
ProxyServer.getInstance().getScheduler().runAsync(BungeeCore.get(), () -> {
|
||||
for (Subserver subserver : Subserver.getServerList()) {
|
||||
if (subserver.getType() == Servertype.BAUSERVER && ((Bauserver) subserver).getOwner().equals(checker.getUniqueId())) {
|
||||
@ -200,9 +197,10 @@ public class CheckCommand extends BasicCommand {
|
||||
|
||||
ArenaMode mode = ArenaMode.getByCheckSchemType(schematic.getSchemType().toDB());
|
||||
SubserverSystem.sendToTestServer(checker, mode, FightCommand.getMap(checker, mode, "Random"), schematic.getSchemID());
|
||||
});
|
||||
|
||||
currentCheckers.put(checker, this);
|
||||
currentSchems.put(schematic.getSchemID(), this);
|
||||
next();
|
||||
});
|
||||
}
|
||||
|
||||
private void next() {
|
||||
|
@ -54,7 +54,7 @@ public class TpCommand extends BasicCommand {
|
||||
return true;
|
||||
}else if(CheckCommand.isChecking(player)){
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDu prüfst gerade eine Schematic!");
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
//Get target player server
|
||||
|
@ -90,6 +90,6 @@ public class Schematic {
|
||||
|
||||
public void setSchemType(SchematicType schemType) {
|
||||
this.schemType = schemType;
|
||||
SQL.update("UPDATE Schematic SET SchemType = ? WHERE SchemID = ?", schemType, schemID);
|
||||
SQL.update("UPDATE Schematic SET SchemType = ? WHERE SchemID = ?", schemType.toDB(), schemID);
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren