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