SHOW:
|
|
- or go back to the newest paste.
1 | @EventHandler | |
2 | public void onEntityDamageByEntity(EntityDamageByEntityEvent event){ | |
3 | Entity damager = event.getDamager(); | |
4 | - | if(damager instanceof Player && !HungerGames.players.contains(damager)) |
4 | + | Bukkit.broadcastMessage("a"); |
5 | - | event.setCancelled(true); |
5 | + | if(damager instance Player) { |
6 | Bukkit.broadcastMessage("b"); | |
7 | if(!HungerGames.players.contains(damager)) { | |
8 | Bukkit.broadcastMessage("c"); | |
9 | event.setCancelled(true); | |
10 | } | |
11 | } | |
12 | } |