diff options
Diffstat (limited to 'bukkit/src/main/java/com/leonardobishop')
| -rw-r--r-- | bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java index 3b8eb7f8..d87caace 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java @@ -45,12 +45,12 @@ public final class BukkitTaskTypeManager extends TaskTypeManager { * * @param taskType the task type to register * @return true if the task type was successfully registered, false otherwise - * @throws RuntimeException if the task type is not an instance of {@link BukkitTaskType} + * @throws UnsupportedOperationException if the task type is not an instance of {@link BukkitTaskType} */ @Override public boolean registerTaskType(final @NotNull TaskType taskType) { if (!(taskType instanceof final BukkitTaskType bukkitTaskType)) { - throw new RuntimeException("BukkitTaskTypeManager implementation can only accept instances of BukkitTaskType!"); + throw new UnsupportedOperationException("BukkitTaskTypeManager implementation can only accept instances of BukkitTaskType!"); } if (super.registerTaskType(taskType)) { |
