geforkt von SteamWar/PersistentBungeeCore
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.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