SteamWar/BungeeCore
Archiviert
13
2

Hotfix non waiting players

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-04-01 07:20:36 +02:00
Ursprung 7323db13c9
Commit 3a71a618e6

Datei anzeigen

@ -205,6 +205,10 @@ public class BauCommand {
FightCommand.createArena(p, "/bau testarena ", command, 2, (player, mode, map) -> ProxyServer.getInstance().getScheduler().runAsync(BungeeCore.get(), () -> {
for (Subserver subserver : Subserver.getServerList()) {
if (subserver.getType() == Servertype.BAUSERVER && ((Bauserver) subserver).getOwner().equals(p.getUniqueId())) {
if(subserver.getServer().getPlayers().isEmpty()){
BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§cDer Server startet bereits.");
return;
}
subserver.stop();
break;
}