@SubscribeEvent public void onConnectionClosed(ClientDisconnectionFromServerEvent event) { if (clientConnected) { clientConnected = false; // unregister motherships here if(TickHandlerServer.mothershipData != null) { TickHandlerServer.mothershipData.unregisterAllMotherships(); TickHandlerServer.mothershipData = null; } /* WorldUtil.unregisterPlanets(); WorldUtil.unregisterSpaceStations(); ConfigManagerCore.restoreClientConfigOverrideable(); */ } }
@SubscribeEvent public void onConnectionClosed(ClientDisconnectionFromServerEvent event) { if (ConnectionEvents.clientConnected) { ConnectionEvents.clientConnected = false; WorldUtil.unregisterPlanets(); WorldUtil.unregisterSpaceStations(); ConfigManagerCore.restoreClientConfigOverrideable(); } }
@SubscribeEvent public void onClientDisconnect(ClientDisconnectionFromServerEvent event) { ProxyClient.isVFEServer = false; ProxyClient.reverseHandsLast = false; ProxyClient.worldScaleLast = 0; ProxyClient.seatedLast = false; ProxyClient.vrPlayerIds.clear(); }
@SubscribeEvent public void onDisconnect(ClientDisconnectionFromServerEvent evt) { if (SideHelper.isClient()) { clearInternal(); endCompleteOverride(); overrideGroups.clear(); } }
@SubscribeEvent public void onClientDisconnectionFromServer(ClientDisconnectionFromServerEvent event) { // FIXME some of these shouldn't be cleared, we might need to treat them differently // hMouseInput.clear(); // addMouseInput.clear(); // hKeyInput.clear(); // addKeyInput.clear(); // hItemPickup.clear(); // addItemPickup.clear(); // hItemCrafted.clear(); // addItemCrafted.clear(); // hItemSmelted.clear(); // addItemSmelted.clear(); // hPlayerLoggedIn.clear(); // addPlayerLoggedIn.clear(); // hPlayerLoggedOut.clear(); // addPlayerLoggedOut.clear(); // hPlayerRespawn.clear(); // addPlayerRespawn.clear(); // hPlayerChangedDimension.clear(); // addPlayerChangedDimension.clear(); // hServerTick.clear(); // addServerTick.clear(); // hClientTick.clear(); // addClientTick.clear(); // hWorldTick.clear(); // addWorldTick.clear(); // hPlayerTick.clear(); // addPlayerTick.clear(); // hRenderTick.clear(); // addRenderTick.clear(); }
@SubscribeEvent public void disconnected(ClientDisconnectionFromServerEvent event) { startIterating(); Iterator<AuxGui> iter = auxGuiList.iterator(); while(iter.hasNext()) { AuxGui gui = iter.next(); if(!gui.isConsistent()) { gui.onDisposed(); iter.remove(); } } endIterating(); }
@SubscribeEvent public void onClientDisconnect(ClientDisconnectionFromServerEvent event) { // Abandon ship! ProxyWorldManager.clearProxyworlds(); }
@SubscribeEvent public void __onClientDisconnect(ClientDisconnectionFromServerEvent evt) { disconnect(); }
@SubscribeEvent public void onPlayerLogout(ClientDisconnectionFromServerEvent event) { syncTo(originalValues); EnderCore.logger.info("Reset configs to client values for {}", configs.getName()); }
@EventHandler public void disconnected(ClientDisconnectionFromServerEvent event) { zmaster587.advancedRocketry.dimension.DimensionManager.getInstance().unregisterAllDimensions(); }
@SuppressWarnings("static-method") @SubscribeEvent public void onPlayerLogout(@SuppressWarnings("unused") ClientDisconnectionFromServerEvent event) { syncConfig(false); configLockedByServer = false; }
@SubscribeEvent public void onClientDisconnected(ClientDisconnectionFromServerEvent event) { // Clear synced config values on disconnect. SyncedConfig.resetAllConfigs(); }
public static void onDisconnect(@SuppressWarnings("unused") ClientDisconnectionFromServerEvent event) { ServerHelper.currentIP = ""; }
@SubscribeEvent public void onDisconnect(ClientDisconnectionFromServerEvent event) { HandleDisconnect.onDisconnect(event); }
@SubscribeEvent public void onClientDisconnectedFromServer(ClientDisconnectionFromServerEvent evt) { SoundJetpack.clearPlayingFor(); Config.onConfigChanged(SimplyJetpacks.MODID); }
@SubscribeEvent public void onDisconnect(ClientDisconnectionFromServerEvent evt) { surfaces.clear(); }