Fixing Server removal
Dieser Commit ist enthalten in:
Ursprung
fe98bb72f4
Commit
bdf5ec20c6
@ -79,12 +79,12 @@ public class Arena implements Runnable{
|
||||
}
|
||||
|
||||
void stop(){
|
||||
ProxyServer.getInstance().getServers().remove(serverName);
|
||||
if(p != null && p.isAlive()){
|
||||
for(ProxiedPlayer player : server.getPlayers()){
|
||||
player.connect(ProxyServer.getInstance().getServerInfo(BungeeCore.LobbyServer));
|
||||
}
|
||||
writer.println("stop");
|
||||
ProxyServer.getInstance().getServers().remove(serverName);
|
||||
ProxyServer.getInstance().getScheduler().runAsync(BungeeCore.instance, ()->{
|
||||
try {
|
||||
p.waitFor();
|
||||
|
@ -57,13 +57,13 @@ public class BauServer implements Runnable{
|
||||
}
|
||||
|
||||
public void stop(){
|
||||
ProxyServer.getInstance().getServers().remove(name);
|
||||
if(p != null && p.isAlive()) {
|
||||
for (ProxiedPlayer player : server.getPlayers()) {
|
||||
player.connect(ProxyServer.getInstance().getServerInfo(BungeeCore.LobbyServer));
|
||||
}
|
||||
stopped = true;
|
||||
writer.println("stop");
|
||||
ProxyServer.getInstance().getServers().remove(name);
|
||||
ProxyServer.getInstance().getScheduler().runAsync(BungeeCore.instance, ()->{
|
||||
try {
|
||||
p.waitFor();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren