Improves some descriptions, and fixes a nullability problem
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good

This commit is contained in:
Kristian Knarvik 2023-09-23 19:14:12 +02:00
parent 5c3c3045eb
commit 6ba13a1ced
3 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -76,7 +76,7 @@ public final class MaterialHelper {
*
* @param materialString <p>The material string to parse</p>
* @param logger <p>The logger to use for logging parsing errors</p>
* @return <p>The materials defined by the material string, or an empty list if none were found</p>
* @return <p>The material defined by the material string, or null if not found</p>
*/
public static @Nullable Material loadMaterialString(@NotNull String materialString, @NotNull Logger logger) {
// Try to parse a material name

View File

@ -37,7 +37,7 @@ public final class UpdateChecker {
*/
public static void checkForUpdate(@NotNull Plugin plugin, @NotNull String apiResourceURL,
@NotNull Supplier<String> getVersionSupplier,
@NotNull Consumer<String> setVersionMethod) {
@Nullable Consumer<String> setVersionMethod) {
BukkitScheduler scheduler = plugin.getServer().getScheduler();
scheduler.runTaskAsynchronously(plugin, () -> UpdateChecker.queryAPI(plugin, apiResourceURL, getVersionSupplier,
setVersionMethod));