Advertisement
Guest User

Untitled

a guest
Aug 16th, 2015
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. isOnServer = event.getSide().isServer();
  2.  
  3. if (isOnServer) {
  4. LogHelper.log(Level.INFO, "Initializing on a server, checking config!");
  5. if(GraphicsEnvironment.isHeadless()){
  6. LogHelper.log(Level.INFO, "Server is on headless OS, Force-Disabling");
  7. trayEnabled=false;
  8. }else{
  9. if(configuration.enableOnServer){
  10. LogHelper.log(Level.INFO, "Running non-headless and enabled in config, Enabling!");
  11. }else{
  12. LogHelper.log(Level.INFO, "Running non-headless and disabled in config, Disabling!");
  13. trayEnabled=false;
  14. }
  15. }
  16. }else{
  17. LogHelper.log(Level.INFO, "Initializing on Client");
  18. if(configuration.enableOnClient){
  19. LogHelper.log(Level.INFO, "Mod Running On Client!");
  20. if(!System.getProperty("os.name").startsWith("Windows") && !System.getProperty("os.name").startsWith("mac")){
  21. LogHelper.log(Level.INFO, "Note: This mod has only been tested on Windows and Mac! Please submit bugs to the forum.");
  22. }
  23. }else{
  24. LogHelper.log(Level.INFO, "Client-side disabled in config, Disabling!");
  25. trayEnabled=false;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement