speed fix and idk what happened to when u death

This commit is contained in:
night0721 2022-07-13 15:12:04 +01:00
parent 0726441da7
commit 4c68cc7c25
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ public class CustomItemManager {
String property = Arrays.asList(key.split("\\.")).get(2); String property = Arrays.asList(key.split("\\.")).get(2);
if (property.equals("damage") && c.getInt(key) > 0) { if (property.equals("damage") && c.getInt(key) > 0) {
pr.add(ChatColor.GRAY + "Damage: " + ChatColor.RED + "+" + c.getInt(key)); pr.add(ChatColor.GRAY + "Damage: " + ChatColor.RED + "+" + c.getInt(key));
} else if (property.equals("damage") && c.getInt(key) > 0) { } else if (property.equals("speed") && c.getInt(key) > 0) {
pr.add(ChatColor.GRAY + "Speed: " + ChatColor.RED + "+" + c.getInt(key)); pr.add(ChatColor.GRAY + "Speed: " + ChatColor.RED + "+" + c.getInt(key));
} }
} else if (key.startsWith("lore.ability.")) { } else if (key.startsWith("lore.ability.")) {

View file

@ -45,7 +45,7 @@ public class SideBarManager {
public void changeOnDeath(Player player) { public void changeOnDeath(Player player) {
int amount = deaths.get(player.getUniqueId()); int amount = deaths.get(player.getUniqueId());
amount++; amount++;
deaths.put(player.getUniqueId(), amount); deaths.put(player.getUniqueId(), amount++);
player.getScoreboard().getTeam("deathsTotal").setSuffix(ChatColor.YELLOW.toString() + amount); player.getScoreboard().getTeam("deathsTotal").setSuffix(ChatColor.YELLOW.toString() + amount);
} }
} }