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:
Commit
ad94e77042
@ -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