Add hasStarted to prevent multiple personal servers #14
@ -39,6 +39,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Subserver implements Runnable {
|
||||
|
||||
private static final List<Subserver> serverList = new LinkedList<>();
|
||||
@ -110,6 +111,10 @@ public class Subserver implements Runnable {
|
||||
return tablistNames;
|
||||
}
|
||||
|
||||
public boolean hasStarted(){
|
||||
return started;
|
||||
}
|
||||
|
||||
public void sendPlayer(ProxiedPlayer p){
|
||||
if(!started){
|
||||
p.sendMessage(Persistent.getPrefix() + "§7Der Server wird gestartet, einen Moment bitte...");
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren