diff --git a/src/main/java/net/knarcraft/knarlib/formatting/TranslatableTimeUnit.java b/src/main/java/net/knarcraft/knarlib/formatting/TranslatableTimeUnit.java index 49a9dd8..c7e5ae1 100644 --- a/src/main/java/net/knarcraft/knarlib/formatting/TranslatableTimeUnit.java +++ b/src/main/java/net/knarcraft/knarlib/formatting/TranslatableTimeUnit.java @@ -12,7 +12,7 @@ import org.jetbrains.annotations.NotNull; public enum TranslatableTimeUnit implements TranslatableMessage { /** - * The format for displaying the exact duration of a blacksmith's cool-down or delay + * The format for displaying the duation of something */ DURATION_FORMAT, diff --git a/src/main/java/net/knarcraft/knarlib/util/MaterialHelper.java b/src/main/java/net/knarcraft/knarlib/util/MaterialHelper.java index ce64399..840ea77 100644 --- a/src/main/java/net/knarcraft/knarlib/util/MaterialHelper.java +++ b/src/main/java/net/knarcraft/knarlib/util/MaterialHelper.java @@ -76,7 +76,7 @@ public final class MaterialHelper { * * @param materialString

The material string to parse

* @param logger

The logger to use for logging parsing errors

- * @return

The materials defined by the material string, or an empty list if none were found

+ * @return

The material defined by the material string, or null if not found

*/ public static @Nullable Material loadMaterialString(@NotNull String materialString, @NotNull Logger logger) { // Try to parse a material name diff --git a/src/main/java/net/knarcraft/knarlib/util/UpdateChecker.java b/src/main/java/net/knarcraft/knarlib/util/UpdateChecker.java index 8bf43e7..f68f0a1 100644 --- a/src/main/java/net/knarcraft/knarlib/util/UpdateChecker.java +++ b/src/main/java/net/knarcraft/knarlib/util/UpdateChecker.java @@ -37,7 +37,7 @@ public final class UpdateChecker { */ public static void checkForUpdate(@NotNull Plugin plugin, @NotNull String apiResourceURL, @NotNull Supplier getVersionSupplier, - @NotNull Consumer setVersionMethod) { + @Nullable Consumer setVersionMethod) { BukkitScheduler scheduler = plugin.getServer().getScheduler(); scheduler.runTaskAsynchronously(plugin, () -> UpdateChecker.queryAPI(plugin, apiResourceURL, getVersionSupplier, setVersionMethod));