public void serverReady() throws RemoteException {
   ready = true;
   for (LoginWorldInterface wli : WorldRegistryImpl.getInstance().getLoginServer()) {
     try {
       wli.channelOnline(cb.getChannelId(), cb.getIP());
     } catch (RemoteException e) {
       WorldRegistryImpl.getInstance().deregisterLoginServer(wli);
     }
   }
   log.info("Channel {} is online.", cb.getChannelId());
 }
 public void shutdown(int time) throws RemoteException {
   for (LoginWorldInterface lwi : WorldRegistryImpl.getInstance().getLoginServer()) {
     try {
       lwi.shutdown();
     } catch (RemoteException e) {
       WorldRegistryImpl.getInstance().deregisterLoginServer(lwi);
     }
   }
   for (int i : WorldRegistryImpl.getInstance().getChannelServer()) {
     ChannelWorldInterface cwi = WorldRegistryImpl.getInstance().getChannel(i);
     try {
       cwi.shutdown(time);
     } catch (RemoteException e) {
       WorldRegistryImpl.getInstance().deregisterChannelServer(i);
     }
   }
 }