Class.forName(GarbageCollector.class.getName());
}
Shutdown.getInstance().schedule(Config.RESTART_AT_TIME, Shutdown.RESTART);
_log.info("GameServer Started");
_log.info("Maximum Numbers of Connected Players: " + Config.MAXIMUM_ONLINE_USERS);
GamePacketHandler gph = new GamePacketHandler();
InetAddress serverAddr = Config.GAMESERVER_HOSTNAME.equalsIgnoreCase("*") ? null : InetAddress.getByName(Config.GAMESERVER_HOSTNAME);
_selectorThreads = new SelectorThread[Config.PORTS_GAME.length];
for (int i = 0; i < Config.PORTS_GAME.length; i++)
{
_selectorThreads[i] = new SelectorThread<>(Config.SELECTOR_CONFIG, gph, gph, gph, null);