public String func_96556_a() {
   return MinecraftServer.getServerConfigurationManager(this.mcServer).getCurrentPlayerCount()
       + " / "
       + MinecraftServer.getServerConfigurationManager(this.mcServer).getMaxPlayers()
       + "; "
       + MinecraftServer.getServerConfigurationManager(this.mcServer).playerEntityList;
 }
Example #2
0
  public static void sendPacketToAllPlayers(Packet var0) {
    MinecraftServer var1 = FMLCommonHandler.instance().getMinecraftServerInstance();

    if (var1 != null) {
      var1.getServerConfigurationManager().sendAll(var0);
    } else {
      FMLLog.fine(
          "Attempt to send packet to all in dimension without a server instance available",
          new Object[0]);
    }
  }
Example #3
0
  public static void sendPacketToAllAround(
      double var0, double var2, double var4, double var6, int var8, Packet var9) {
    MinecraftServer var10 = FMLCommonHandler.instance().getMinecraftServerInstance();

    if (var10 != null) {
      var10.getServerConfigurationManager().sendPacketNearby(var0, var2, var4, var6, var8, var9);
    } else {
      FMLLog.fine(
          "Attempt to send packet to all around without a server instance available",
          new Object[0]);
    }
  }