Example #1
0
 public void windowClosing(WindowEvent windowevent) {
   a.a();
   while (!a.g) {
     try {
       Thread.sleep(100L);
     } catch (InterruptedException interruptedexception) {
       interruptedexception.printStackTrace();
     }
   }
   System.exit(0);
 }
Example #2
0
 /**
  * Uses the specified console command
  *
  * @param command command to use
  * @param player player to use command as
  */
 public void useConsoleCommand(String command, Player player) {
   server.a(command, player.getUser().a);
 }
Example #3
0
 /**
  * Uses the specified console command
  *
  * @param command
  */
 public void useConsoleCommand(String command) {
   server.a(command, server);
 }
 public void a(Snooper var1) {
   var1.a("whitelist_enabled", Boolean.valueOf(this.getDedicatedPlayerList().s()));
   var1.a(
       "whitelist_count", Integer.valueOf(this.getDedicatedPlayerList().getWhitelisted().length));
   super.a(var1);
 }
 public void a(MojangStatisticsGenerator mojangstatisticsgenerator) {
   mojangstatisticsgenerator.a("whitelist_enabled", Boolean.valueOf(this.aC().getHasWhitelist()));
   mojangstatisticsgenerator.a(
       "whitelist_count", Integer.valueOf(this.aC().getWhitelisted().length));
   super.a(mojangstatisticsgenerator);
 }