Skip to content

Commit

Permalink
Update Listeners.java
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceNiklas committed Oct 1, 2022
1 parent cff0bc1 commit fc7d9a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/spaceniklas/villagerfixes/Listeners.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ public void onEntityDamageByEntityEvent(EntityDamageByEntityEvent e){
if(countdown.get(e.getDamager()) != null && countdown.get(e.getDamager())){
e.setCancelled(true);
e.getDamager().sendMessage(ChatColor.translateAlternateColorCodes('&', Villagerfixes.config.getString("still-invincible")));
e.getDamager().sendMessage(ChatColor.RED + "You are still in invincibility! Do " + ChatColor.BOLD + "/invincibility" + ChatColor.RESET + ChatColor.RED + " to disable your invincibility!");
}else
if(countdown.get(e.getEntity()) != null && countdown.get(e.getEntity())){
e.getDamager().sendMessage(ChatColor.translateAlternateColorCodes('&', Villagerfixes.config.getString("still-invincible")));
e.setCancelled(true);
e.getDamager().sendMessage(ChatColor.RED + "You are still in invincibility! Do " + ChatColor.BOLD + "/invincibility" + ChatColor.RESET + ChatColor.RED + " to disable your invincibility!");
}
}
}

0 comments on commit fc7d9a8

Please sign in to comment.