moreira2003 Postado Agosto 1, 2017 Denunciar Compartilhar Postado Agosto 1, 2017 Ola , eu tenho uma duvida creio q seja bem simples Codigo : @EventHandler public void ev (PlayerDeathEvent e) { Player p = e.getEntity().getPlayer(); Player k = e.getEntity().getKiller(); if(k.hasPermission("Smeltapi.berserker")) if(k.getHealth() == 2) k.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 200, 2)); k.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 90, 10)); k.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 90, 10)); k.addPotionEffect(new PotionEffect(PotionEffectType.HEALTH_BOOST, 500, 4)); k.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 200, 2)); k.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 100, 5)); k.setFoodLevel(1); k.setSprinting(false); Eu gostaria que pra ele desse os efeitos da potion , No caso ele teria que ter a permissao e ao mesmo tempo estar com 2 de Health Alguem? pode me ajudar Link para o comentário Compartilhar em outros sites More sharing options...
GhostTheWolf Postado Agosto 1, 2017 Denunciar Compartilhar Postado Agosto 1, 2017 if (k.hasPermission("Smeltapi.berserker") && k.getHealth() == 2) { //código } Link para o comentário Compartilhar em outros sites More sharing options...
moreira2003 Postado Agosto 2, 2017 Autor Denunciar Compartilhar Postado Agosto 2, 2017 Ja Consegui Obrigado Link para o comentário Compartilhar em outros sites More sharing options...
Gutyerrez Postado Agosto 2, 2017 Denunciar Compartilhar Postado Agosto 2, 2017 Sua dúvida foi marcada como [Resolvido] e movido à área de dúvidas resolvidas. Atenciosamente, Gamer's Board Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
moreira2003
Ola , eu tenho uma duvida creio q seja bem simples
Codigo :
@EventHandler
public void ev (PlayerDeathEvent e) {
Link para o comentário
Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados