geforkt von SteamWar/PersistentBungeeCore
Enable command execution, force destruction
Dieser Commit ist enthalten in:
Ursprung
4f102cd5a6
Commit
e9906c942d
@ -130,11 +130,15 @@ public class Subserver implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void execute(String command) {
|
||||||
|
writer.println(command);
|
||||||
|
}
|
||||||
|
|
||||||
public void stop(){
|
public void stop(){
|
||||||
writer.println("stop");
|
execute("stop");
|
||||||
try {
|
try {
|
||||||
if(!process.waitFor(1, TimeUnit.MINUTES))
|
if(!process.waitFor(1, TimeUnit.MINUTES))
|
||||||
process.destroy();
|
process.destroyForcibly();
|
||||||
thread.join();
|
thread.join();
|
||||||
}catch(InterruptedException e){
|
}catch(InterruptedException e){
|
||||||
logger.log(Level.SEVERE, "Subserver stop interrupted!", e);
|
logger.log(Level.SEVERE, "Subserver stop interrupted!", e);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren