diff --git a/README.md b/README.md index 6be5ee35..8106e917 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,7 @@ extensive statistics system, handles YAML configuration files and features fancy ## :star: Support and feedback -Thought of a cool idea? Found a problem or need some help? Simply open an [**issue -**](https://github.com/mrfdev/advanced-achievements/issues)! +Thought of a cool idea? Found a problem or need some help? Simply open an [**issue**](https://github.com/mrfdev/advanced-achievements/issues)! Find the project useful, fun or interesting? **Star** the repository by clicking on the icon on the top right of this page! diff --git a/advanced-achievements-plugin/src/test/java/com/hm/achievement/config/RewardParserTest.java b/advanced-achievements-plugin/src/test/java/com/hm/achievement/config/RewardParserTest.java index 282637cb..48a7ce36 100644 --- a/advanced-achievements-plugin/src/test/java/com/hm/achievement/config/RewardParserTest.java +++ b/advanced-achievements-plugin/src/test/java/com/hm/achievement/config/RewardParserTest.java @@ -172,7 +172,7 @@ void shouldParseMaxHealthReward() throws Exception { assertEquals(Arrays.asList("increase max health by 2"), reward.getListTexts()); assertEquals(Arrays.asList("Your max health has increased by 2!"), reward.getChatTexts()); reward.getRewarder().accept(player); - verify(player).getAttribute(Attribute.GENERIC_MAX_HEALTH); + verify(player).getAttribute(Attribute.MAX_HEALTH); verify(healthAttribute).setBaseValue(3.0); } diff --git a/advanced-achievements-plugin/src/test/java/com/hm/achievement/utils/MaterialHelperTest.java b/advanced-achievements-plugin/src/test/java/com/hm/achievement/utils/MaterialHelperTest.java index 6d53f9fe..dd15cdd4 100644 --- a/advanced-achievements-plugin/src/test/java/com/hm/achievement/utils/MaterialHelperTest.java +++ b/advanced-achievements-plugin/src/test/java/com/hm/achievement/utils/MaterialHelperTest.java @@ -7,7 +7,6 @@ import org.bukkit.Material; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.PotionMeta; -import org.bukkit.potion.PotionData; import org.bukkit.potion.PotionType; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -25,7 +24,7 @@ class MaterialHelperTest { @Test void shouldReturnFalseForWaterPotion() { - when(potionMeta.getBasePotionData()).thenReturn(new PotionData(PotionType.WATER)); + when(potionMeta.getBasePotionType()).thenReturn(PotionType.WATER); when(itemStack.getItemMeta()).thenReturn(potionMeta); when(itemStack.getType()).thenReturn(Material.POTION); MaterialHelper underTest = new MaterialHelper(null); @@ -35,7 +34,7 @@ void shouldReturnFalseForWaterPotion() { @Test void shouldReturnTrueForOtherPotion() { - when(potionMeta.getBasePotionData()).thenReturn(new PotionData(PotionType.INSTANT_DAMAGE)); + when(potionMeta.getBasePotionType()).thenReturn(PotionType.HARMING); when(itemStack.getItemMeta()).thenReturn(potionMeta); when(itemStack.getType()).thenReturn(Material.POTION); MaterialHelper underTest = new MaterialHelper(null); diff --git a/pom.xml b/pom.xml index 5ae0b62c..00e9334e 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ UTF-8 21 - 7.1.5 + 7.1.6 true