@SubscribeEvent public void onDisconnect(ClientDisconnectionFromServerEvent event) { // write out all pending logs OreLogger.instance.getLogger().pollAndWrite(); // reset save file so a new one is created if the player connects again OreLogger.instance.getLogger().resetSaveFile(); }
@SubscribeEvent public void clientDisconnect(ClientDisconnectionFromServerEvent event) { if (!event.getManager().isLocalChannel()) { ClientHandler.getInstance().cleanUp(); } }
@Override public void clientDisconnect(@Nonnull final ClientDisconnectionFromServerEvent event) { Minecraft.getMinecraft().addScheduledTask(new Runnable() { public void run() { EffectManager.unregister(); GuiHUDHandler.unregister(); ProxyClient.this.connectionTime = 0; } }); }
@SubscribeEvent /** * Runs on the client */ public void onClientDisconnectServer(ClientDisconnectionFromServerEvent event) { if(WorldGen.getInstance() != null) { WorldGen.getInstance().resetCache(); WorldGen.ClearInstances(); ChunkLoadHandler.loadedCentersMap.clear(); } }
/** * Does cleanup stuff on disconnect from a server */ @SubscribeEvent public void playerDisconnect(ClientDisconnectionFromServerEvent event) { AppliedPatches patches = PatchManager.instance().getGlobalAppliedPatches(); patches.setPatchSuccessfullyApplied(PatchList.SERVER_MODDED, false); patches.setPatchSuccessfullyApplied(PatchList.HANDSHAKE_FINISHED, false); PacketHandlerClient.reregisterAndClearRemovedCmds(); MoreCommands.getProxy().playerNotified = false; MoreCommandsConfig.enablePlayerAliases = MoreCommandsConfig.enablePlayerAliasesOriginal; MoreCommandsConfig.enablePlayerVars = MoreCommandsConfig.enablePlayerVarsOriginal; }
/** Resets all synced values of the settings after disconnecting. */ @SideOnly(Side.CLIENT) @SubscribeEvent public void onDisconnectedFromServer(ClientDisconnectionFromServerEvent event) { if (!_connected) return; getSettings().forEach(Setting::resetSynced); _connected = false; }
@SubscribeEvent public void playerLoggedOut(ClientDisconnectionFromServerEvent event) { Autotip.onHypixel = false; }
@SuppressWarnings("static-method") @SubscribeEvent public void onPlayerLogout(ClientDisconnectionFromServerEvent event) { syncConfig(false); configLockedByServer = false; }
@SubscribeEvent(priority = EventPriority.LOWEST) public void clientDisconnect(@Nonnull final ClientDisconnectionFromServerEvent event) { proxy.clientDisconnect(event); installedOnServer = false; }
public void clientDisconnect(@Nonnull final ClientDisconnectionFromServerEvent event) { // NOTHING SHOULD BE HERE - OVERRIDE IN ProxyClient! }
@SubscribeEvent public void onUserLogOut(ClientDisconnectionFromServerEvent event) { ClientProxy.manager.reset(); ClientProxy.recordingOverlay.setVisible(false); }
@SubscribeEvent public void onClientLogout(ClientDisconnectionFromServerEvent event) { cleanupClientWorld(); }
@SubscribeEvent public void onDisconnect(ClientDisconnectionFromServerEvent event) { currentServer = ""; }
@SubscribeEvent public void on(ClientDisconnectionFromServerEvent event) { Log.info("Clearing Inventory Panel Client Database"); dbRegistry.clear(); }
@SubscribeEvent public void onPlayerLogout(final ClientDisconnectionFromServerEvent event) { Log.info("Removed server config override for mod " + modid); serverConfig = null; generation++; }
@SubscribeEvent public void onDisconnectedFromServer(ClientDisconnectionFromServerEvent evt) { ClientChannelRegister.instance.reset(); }