13
0

Merge pull request 'Add hasStarted to prevent multiple personal servers' (#14) from addStarted into master

Reviewed-on: #14
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Lixfel 2021-09-05 17:42:16 +02:00
Commit ad94e77042

Datei anzeigen

@ -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...");