Facebook
From Ivory Porcupine, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 237
  1.    @EventHandler
  2.    public void onDeath(PlayerDeathEvent event) {
  3.         Player player = event.getEntity();
  4.         if (event.getEntity().getKiller() != null){
  5.             event.setDeathMessage(fixColor("&a"+player.getName()+" &4zostal zabity przez: &a"+player.getKiller().getType()));
  6.         }
  7.         else{
  8.             event.setDeathMessage(fixColor("&a"+player.getName()+" &4umarl"));
  9.         }
  10.      }