Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- isOnServer = event.getSide().isServer();
- if (isOnServer) {
- LogHelper.log(Level.INFO, "Initializing on a server, checking config!");
- if(GraphicsEnvironment.isHeadless()){
- LogHelper.log(Level.INFO, "Server is on headless OS, Force-Disabling");
- trayEnabled=false;
- }else{
- if(configuration.enableOnServer){
- LogHelper.log(Level.INFO, "Running non-headless and enabled in config, Enabling!");
- }else{
- LogHelper.log(Level.INFO, "Running non-headless and disabled in config, Disabling!");
- trayEnabled=false;
- }
- }
- }else{
- LogHelper.log(Level.INFO, "Initializing on Client");
- if(configuration.enableOnClient){
- LogHelper.log(Level.INFO, "Mod Running On Client!");
- if(!System.getProperty("os.name").startsWith("Windows") && !System.getProperty("os.name").startsWith("mac")){
- LogHelper.log(Level.INFO, "Note: This mod has only been tested on Windows and Mac! Please submit bugs to the forum.");
- }
- }else{
- LogHelper.log(Level.INFO, "Client-side disabled in config, Disabling!");
- trayEnabled=false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement