Fixes some messages and some jar downloads
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good
This commit is contained in:
@ -10,7 +10,7 @@ public interface GUI {
|
||||
*
|
||||
* @param message <p>The message contents</p>
|
||||
*/
|
||||
void printMessageToGUI(String message);
|
||||
void setStatus(String message);
|
||||
|
||||
/**
|
||||
* Displays an error to the user as an independent box
|
||||
|
@ -90,11 +90,7 @@ public class ServerLauncherGUI extends MessageHandler implements ActionListener,
|
||||
return this.serversPane;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the text of the status label.
|
||||
*
|
||||
* @param text The new text
|
||||
*/
|
||||
@Override
|
||||
public void setStatus(String text) {
|
||||
this.lblStatuslabel.setText(text);
|
||||
try (PrintWriter file = new PrintWriter(new FileWriter(Main.getApplicationWorkDirectory() + File.separator + "latestrun.log", true))) {
|
||||
@ -803,9 +799,4 @@ public class ServerLauncherGUI extends MessageHandler implements ActionListener,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void printMessageToGUI(String message) {
|
||||
setStatus(message);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user