Splits the GUI into more components to increase maintainability
This commit is contained in:
@ -137,7 +137,7 @@ public class Server {
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
controller.getGUI().updateRunning(false);
|
||||
controller.getGUI().updateGUIElementsWhenServersStartOrStop(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -323,7 +323,7 @@ public class Server {
|
||||
*/
|
||||
public void addPlayer(String name) {
|
||||
this.playerList.add(name);
|
||||
Main.getController().getGUI().addPlayer(name);
|
||||
Main.getController().getGUI().getServerControlTab().addPlayer(name);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -333,7 +333,7 @@ public class Server {
|
||||
*/
|
||||
public void removePlayer(String name) {
|
||||
playerList.removeIf(player -> player.equals(name));
|
||||
Main.getController().getGUI().removePlayer(name);
|
||||
Main.getController().getGUI().getServerControlTab().removePlayer(name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user