@Override
 public void valueChanged(ListSelectionEvent e) {
   if ((playerBox.getSelectedValue() != null) && !isRunning) {
     Logman.getLogman("Box").info((String) playerBox.getSelectedValue());
     Player test = Canary.getServer().getPlayer((String) playerBox.getSelectedValue());
     if (test == null) {
       if (Configuration.getServerConfig().isDebugMode()) {
         Logman.getLogman("GUI").logDerp("Null Player from list!");
       }
     } else {
       Logman.getLogman("GUI").info(test.getName());
       playersettingsbox = new PlayerSettings(test);
     }
   }
 }
예제 #2
0
 static {
   System.out.println("Please wait while the libraries initialize...");
   log = Logman.getLogman("CanaryMod");
 }