@SubscribeEvent public void onPlayerLogout(PlayerLoggedOutEvent event) { ArrayList<RecipeChain> playerChains = chains.getValues(event.player); if(playerChains != null) { for (int i = 0; i < playerChains.size(); i++) { for (int j = 0; j < playerChains.get(i).result.stacks.size(); j++) { if(!InventoryUtils.addItemStackToInventory(event.player.inventory, playerChains.get(i).result.stacks.get(j))) WorldUtils.dropItem(event.player, playerChains.get(i).result.stacks.get(j)); } } chains.removeKey(event.player); } }
@SubscribeEvent public void onPlayerLogout(PlayerLoggedOutEvent event) { if (event.player instanceof EntityPlayerMP) { this.onPlayerLogout((EntityPlayerMP) event.player); } }
@SubscribeEvent public void onPlayerLoggedOut(PlayerLoggedOutEvent event) { if (!addPlayerLoggedOut.isEmpty()) { hPlayerLoggedOut.addAll(addPlayerLoggedOut); addPlayerLoggedOut.clear(); } for (Iterator<LIHandler> it = hPlayerLoggedOut.iterator(); it.hasNext(); ) { LIHandler handler = it.next(); if (handler.isDead()) it.remove(); else handler.trigger(event); } }
@SubscribeEvent public void onPlayerLogoutEvent(PlayerLoggedOutEvent event) { Mekanism.jetpackOn.remove(event.player.getCommandSenderName()); Mekanism.gasmaskOn.remove(event.player.getCommandSenderName()); Mekanism.flamethrowerActive.remove(event.player.getCommandSenderName()); }
@SubscribeEvent public void onPlayerLoggedOutEvent(PlayerLoggedOutEvent event) { Side side = FMLCommonHandler.instance().getEffectiveSide(); if (side == Side.SERVER) { List<MocapAction> aList = Mocap.instance .getActionListForPlayer(event.player); if (aList != null) { MocapAction ma = new MocapAction(MocapActionTypes.LOGOUT); aList.add(ma); } } }
@SubscribeEvent public void logout(PlayerLoggedOutEvent e) { if (e.player.worldObj.isRemote) { // client INSTANCE.stains.clear(); } else { // server PacketManager.sendToPlayer(new PacketStainRemover(e.player.dimension), e.player); } }
@SubscribeEvent //TODO I used the Unload event before. public void onPlayerLoggedOut(PlayerLoggedOutEvent event){ if(mod_SecurityCraft.configHandler.disconnectOnWorldClose && mod_SecurityCraft.instance.getIrcBot() != null){ mod_SecurityCraft.instance.getIrcBot().disconnect(); mod_SecurityCraft.instance.setIrcBot(null); } }
@SubscribeEvent public void onPlayerLeave(PlayerLoggedOutEvent event) { synchronized (playerListeners) { for (IPlayerEventHook listener : playerListeners) { listener.onPlayerLeave(event.player.getDisplayName()); } } }
@SubscribeEvent public void onPlayerLogout(PlayerLoggedOutEvent event) { Integer experience = entityIdToExperience.remove(event.player.getEntityId()); if (experience != null) { ProjectZuluLog.info("Removing Experience (%s) and adding (%s)", event.player.experienceTotal, experience); event.player.experienceLevel = 0; event.player.experienceTotal = 0; event.player.experience = 0; event.player.addExperience(experience); } }
@SubscribeEvent public void onPlayerLogout(PlayerLoggedOutEvent event) { ChunkLoadingCallback.onPlayerLogout(event.player); }
@SubscribeEvent public void logoutEvent(PlayerLoggedOutEvent event) { NEIServerConfig.unloadPlayer(event.player); }
public void onPlayerLeave(PlayerLoggedOutEvent event) { FWPlayerStats stats = FWPlayerStats.get(event.player); stats.isLoggedIn = false; }
@SubscribeEvent public void onPlayerLogoutEvent(PlayerLoggedOutEvent event) { prevAtmosphere.remove(event.player); }
@SubscribeEvent public void onPlayerLogout(PlayerLoggedOutEvent e) { }
@SubscribeEvent public void onPlayerLoggedOut(PlayerLoggedOutEvent evt) { removeFromAll(evt.player); }
@SubscribeEvent public void onPlayerChangedDimension(PlayerLoggedOutEvent event) { instance(false).sendDataToPlayer(event.player); }
@SubscribeEvent public void onLogout(PlayerLoggedOutEvent e) { NyxDeathSystem.death_inv.remove(e.player.getEntityId()); }
@SubscribeEvent public void onPlayerLogout(PlayerLoggedOutEvent event) { }
@SubscribeEvent public void onPlayerLogout(PlayerLoggedOutEvent event) { // This is for multiplayer Log.info("Player %s logged out. Restoring their passages...", event.player.getGameProfile().getName()); MosesMod.mosesBlockProvider.restoreAllOwnedBlocksAndPlaySound(event.player.getEntityId()); }
@SubscribeEvent public void onPlayerLogoutEvent(PlayerLoggedOutEvent event) { }