geforkt von SteamWar/BungeeCore
Hotfix non waiting players
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
7323db13c9
Commit
3a71a618e6
@ -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;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren