From 03be381bc8a7ada87c5f1d1114861914e32432ce Mon Sep 17 00:00:00 2001 From: Krakenied Date: Tue, 20 Feb 2024 09:39:38 +0100 Subject: Fix config validators descriptions --- .../main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bukkit/src') diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java index fb284045..c6508319 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java @@ -25,6 +25,7 @@ import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Entity; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; +import org.bukkit.event.entity.CreatureSpawnEvent; import org.bukkit.inventory.ItemStack; import org.bukkit.material.Colorable; import org.jetbrains.annotations.NotNull; @@ -774,8 +775,8 @@ public class TaskUtils { EntityType.valueOf(entity); } catch (IllegalArgumentException ex) { problems.add(new ConfigProblem(ConfigProblem.ConfigProblemType.WARNING, - ConfigProblemDescriptions.UNKNOWN_MATERIAL.getDescription(entity), - ConfigProblemDescriptions.UNKNOWN_MATERIAL.getExtendedDescription(entity), + ConfigProblemDescriptions.UNKNOWN_ENTITY_TYPE.getDescription(entity), + ConfigProblemDescriptions.UNKNOWN_ENTITY_TYPE.getExtendedDescription(entity), path)); } } -- cgit v1.2.3-70-g09d2