Ir para conteúdo
  • 0

[Resolvido] Dúvida, pegar jogador(a) que morreu pró Wither!!


Guest iTzFernandPlus⁴ ¿ ₱ęčæ

Pergunta

Guest iTzFernandPlus⁴ ¿ ₱ęčæ
Postado

Como eu faço para pegar o jogador(a) que morreu para o wither?

5 respostass a esta questão

Posts Recomendados

Postado

@EventHandler

public void onPlayerDeath( PlayerDeathEvent event )

{

if ( event.getEntity().getKiller() instanceof Wither )

{

// esse cara foi morto por um wither

}

}

Guest iTzFernandPlus⁴ ¿ ₱ęčæ
Postado
@EventHandler
public void onPlayerDeath( PlayerDeathEvent event )
{
	if ( event.getEntity().getKiller() instanceof Wither )
	{
		// esse cara foi morto por um wither
	}
}

Não preciso identificar se e nullo neh?

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...