graphics checks
This commit is contained in:
@@ -108,9 +108,15 @@ public class JMusicBot {
|
|||||||
|
|
||||||
if(!config.getNoGui())
|
if(!config.getNoGui())
|
||||||
{
|
{
|
||||||
GUI gui = new GUI(bot);
|
try {
|
||||||
bot.setGUI(gui);
|
GUI gui = new GUI(bot);
|
||||||
gui.init();
|
bot.setGUI(gui);
|
||||||
|
gui.init();
|
||||||
|
} catch(Exception e) {
|
||||||
|
SimpleLog.getLog("Startup").fatal("Could not start GUI. If you are "
|
||||||
|
+ "running on a server or in a location where you cannot display a "
|
||||||
|
+ "window, please run in nogui mode using the -nogui flag.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// attempt to log in and start
|
// attempt to log in and start
|
||||||
|
|||||||
Reference in New Issue
Block a user