@SubscribeEvent public void onPlayerRespawn(PlayerRespawnEvent event) { if (event.player instanceof EntityPlayerMP) { this.onPlayerRespawn((EntityPlayerMP) event.player); } }
@SubscribeEvent public void onPlayerRespawn(PlayerRespawnEvent event) { if (!roundstarted) return; event.player.setLocationAndAngles(cSpawnx, 200, cSpawnz,0,0); PacketDispatcher.packetsys.sendTo(new GuiSpawnPacket(), (EntityPlayerMP) event.player); }
@SubscribeEvent(priority = EventPriority.HIGHEST) public void onRespawnEvent(PlayerRespawnEvent event) { if (event.isCancelable()) return; if(!event.player.capabilities.allowEdit) { event.player.setGameType(GameType.SURVIVAL); } }
@SubscribeEvent public void onPlayerRespawn(PlayerRespawnEvent event) { if (!addPlayerRespawn.isEmpty()) { hPlayerRespawn.addAll(addPlayerRespawn); addPlayerRespawn.clear(); } for (Iterator<LIHandler> it = hPlayerRespawn.iterator(); it.hasNext(); ) { LIHandler handler = it.next(); if (handler.isDead()) it.remove(); else handler.trigger(event); } }
@SubscribeEvent public void onRespawn(PlayerRespawnEvent event){ if(event.player.getEntityData().getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG).hasKey("MineGate_Recovery")) { ItemStack item = new ItemStack(recovery); item.setTagCompound(event.player.getEntityData().getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG).getCompoundTag("MineGate_Recovery")); event.player.getEntityData().getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG).removeTag("MineGate_Recovery"); event.player.inventory.addItemStackToInventory(item); } }
@SubscribeEvent public void onPlayerRespawn(PlayerRespawnEvent e) { if (!e.player.worldObj.isRemote) { PacketHelper.syncOwnInventory((EntityPlayerMP) e.player,PlayerRpgInventory.get(e.player)); } PlayerRpgInventory.get(e.player); }
@SubscribeEvent public void onPlayerRespawnEvent(PlayerRespawnEvent event) { KnowledgeHandler playerKnowledge = new KnowledgeHandler(event.player.getDisplayName()); playerKnowledge.setKnowledgeXP(0); // TODO: Convert to lang event.player.addChatComponentMessage(new ChatComponentText("You've lost some brain cells caused by the damage. Brain XP: " + (int) playerKnowledge.getKnowledgeXP())); }
@SubscribeEvent public void onPlayerRespawn(PlayerRespawnEvent 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 onPlayerRespawn(PlayerRespawnEvent e) { }
@SubscribeEvent public void loginEvent(PlayerRespawnEvent event) { NEISPH.sendHasServerSideTo((EntityPlayerMP) event.player); }
@SubscribeEvent public void onPlayerRespawn(PlayerRespawnEvent event) { }
@SubscribeEvent public void onPlayerRespawn(PlayerRespawnEvent event) { if (event.player instanceof EntityPlayerMP) getProperties(event.player).respawn(event.player); }
@SubscribeEvent public void onPlayerRespawn (PlayerRespawnEvent event) { onPlayerRespawn(event.player); }
@SubscribeEvent public void onRespawn(PlayerRespawnEvent e){ Debug.mark(); BlockSpawner.relocatePlayer(e.player); }
@SubscribeEvent public void onPlayerRespawn(PlayerRespawnEvent event) { PlayerInformation.forPlayer(event.player).setDirty(); }
@SubscribeEvent public void onPlayerRespawn(PlayerRespawnEvent event) { event.player.getAttributeMap().getAttributeInstance(SharedMonsterAttributes.maxHealth).setBaseValue(100.0D); event.player.setHealth(100.0F); }
@SubscribeEvent public void onPlayerRespawnEvent(PlayerRespawnEvent event) { }