Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onEntityDamageByEntity(EntityDamageByEntityEvent event){
- Entity damager = event.getDamager();
- Bukkit.broadcastMessage("a");
- if(damager instance Player) {
- Bukkit.broadcastMessage("b");
- if(!HungerGames.players.contains(damager)) {
- Bukkit.broadcastMessage("c");
- event.setCancelled(true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement