From 4c68cc7c2595c1dcd97ad07c0159242d5388177f Mon Sep 17 00:00:00 2001 From: night0721 Date: Wed, 13 Jul 2022 15:12:04 +0100 Subject: [PATCH] speed fix and idk what happened to when u death --- .../java/com/night/nullvalkyrie/Items/CustomItemManager.java | 2 +- src/main/java/com/night/nullvalkyrie/Rank/SideBarManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/night/nullvalkyrie/Items/CustomItemManager.java b/src/main/java/com/night/nullvalkyrie/Items/CustomItemManager.java index ec41430..e202a63 100644 --- a/src/main/java/com/night/nullvalkyrie/Items/CustomItemManager.java +++ b/src/main/java/com/night/nullvalkyrie/Items/CustomItemManager.java @@ -48,7 +48,7 @@ public class CustomItemManager { String property = Arrays.asList(key.split("\\.")).get(2); if (property.equals("damage") && c.getInt(key) > 0) { 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)); } } else if (key.startsWith("lore.ability.")) { diff --git a/src/main/java/com/night/nullvalkyrie/Rank/SideBarManager.java b/src/main/java/com/night/nullvalkyrie/Rank/SideBarManager.java index 54f45eb..88bf723 100644 --- a/src/main/java/com/night/nullvalkyrie/Rank/SideBarManager.java +++ b/src/main/java/com/night/nullvalkyrie/Rank/SideBarManager.java @@ -45,7 +45,7 @@ public class SideBarManager { public void changeOnDeath(Player player) { int amount = deaths.get(player.getUniqueId()); amount++; - deaths.put(player.getUniqueId(), amount); + deaths.put(player.getUniqueId(), amount++); player.getScoreboard().getTeam("deathsTotal").setSuffix(ChatColor.YELLOW.toString() + amount); } }