diff --git a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/commands/ListCommand.java b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/commands/ListCommand.java index 4a0b57f5..f72dd177 100644 --- a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/commands/ListCommand.java +++ b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/commands/ListCommand.java @@ -26,7 +26,6 @@ import org.jetbrains.annotations.NotNull; import java.util.List; -import java.util.concurrent.ExecutionException; /** * @author sarhatabaot diff --git a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/config/settings/ChancesConfig.java b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/config/settings/ChancesConfig.java index e6ae51c8..c8b56a9c 100644 --- a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/config/settings/ChancesConfig.java +++ b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/config/settings/ChancesConfig.java @@ -129,7 +129,7 @@ public Chance deserialize(Type type, ConfigurationNode node) throws Serializatio return new Chance(id, hostile, neutral, passive, boss); } - //Only implemented this since it's required. We don't actually use this feature yet. + //Only implemented this since it's required. We don't use this feature yet. @Override public void serialize(Type type, @Nullable Chance chance, ConfigurationNode target) throws SerializationException { if (chance == null) { diff --git a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/denylist/PlayerDenylist.java b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/denylist/PlayerDenylist.java index 1c284407..f9450b1a 100644 --- a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/denylist/PlayerDenylist.java +++ b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/denylist/PlayerDenylist.java @@ -73,12 +73,12 @@ private void setWhitelistMode() { public boolean isAllowed(@NotNull Player p) { boolean isOnList = listedPlayers.contains(p.getName()); - //If you're not on the blacklist, you're allowed + //If you're not on the allowlist, you're allowed if (this.allowlistMode == AllowlistMode.DENY) { return !isOnList; } - //If you're on the whitelist, you're allowed + //If you're on the allowlist, you're allowed if (this.allowlistMode == AllowlistMode.ALLOW) { return isOnList; } diff --git a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/managers/impl/BoosterPackManager.java b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/managers/impl/BoosterPackManager.java index 7a96f14e..e956b294 100644 --- a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/managers/impl/BoosterPackManager.java +++ b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/managers/impl/BoosterPackManager.java @@ -26,7 +26,6 @@ import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; public class BoosterPackManager extends Manager implements PackManager { diff --git a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/managers/impl/DropTypeManager.java b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/managers/impl/DropTypeManager.java index 9323d5ed..31bbdaf2 100644 --- a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/managers/impl/DropTypeManager.java +++ b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/managers/impl/DropTypeManager.java @@ -3,7 +3,6 @@ import com.github.benmanes.caffeine.cache.Caffeine; import com.github.benmanes.caffeine.cache.LoadingCache; -import com.google.common.cache.CacheBuilder; import net.tinetwork.tradingcards.api.manager.TypeManager; import net.tinetwork.tradingcards.api.model.DropType; import net.tinetwork.tradingcards.tradingcardsplugin.TradingCards; diff --git a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/storage/impl/local/PacksConfig.java b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/storage/impl/local/PacksConfig.java index bfd63824..0724a5f4 100644 --- a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/storage/impl/local/PacksConfig.java +++ b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/storage/impl/local/PacksConfig.java @@ -190,7 +190,7 @@ private String getDisplayName(final String displayName, final ConfigurationNode return displayName; } - //Only implemented this since it's required. We don't actually use this feature yet. + //Only implemented this since it's required. We don't use this feature yet. @Override public void serialize(Type type, @Nullable Pack pack, ConfigurationNode target) throws SerializationException { if(pack == null) { diff --git a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/storage/impl/local/RaritiesConfig.java b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/storage/impl/local/RaritiesConfig.java index 81730bdc..94b45d42 100644 --- a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/storage/impl/local/RaritiesConfig.java +++ b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/storage/impl/local/RaritiesConfig.java @@ -215,7 +215,7 @@ public Rarity deserialize(Type type, ConfigurationNode node) throws Serializatio return new Rarity(name,displayName,defaultColor,buyPrice,sellPrice,rewards,currencyId); } - //Only implemented this since it's required. We don't actually use this feature yet. + //Only implemented this since it's required. We don't use this feature yet. @Override public void serialize(Type type, Rarity rarity, ConfigurationNode target) throws SerializationException { if(rarity == null) { diff --git a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/utils/CardUtil.java b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/utils/CardUtil.java index 164a2f3c..b35a2190 100644 --- a/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/utils/CardUtil.java +++ b/tradingcards-plugin/src/main/java/net/tinetwork/tradingcards/tradingcardsplugin/utils/CardUtil.java @@ -25,7 +25,6 @@ import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.PlayerInventory; -import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import java.util.*; @@ -274,7 +273,7 @@ public static boolean calculateIfShiny(boolean forcedShiny) { } /** - * Internal function to allow for unit testing. Should not actually be used directly. + * Internal function to allow for unit testing. Should not be used directly. */ public static boolean calculateIfShiny(final int shinyRandom, final int shinyVersionChance, boolean forcedShiny) { if (forcedShiny) diff --git a/tradingcards-plugin/src/main/resources/settings/chances.yml b/tradingcards-plugin/src/main/resources/settings/chances.yml index 60d6b0a6..a0c8d4da 100644 --- a/tradingcards-plugin/src/main/resources/settings/chances.yml +++ b/tradingcards-plugin/src/main/resources/settings/chances.yml @@ -13,7 +13,7 @@ shiny-version-chance: 1000 # 10,000 = 10% chance, 1000 = 1% chance, 100 = 0.1% chance, 10 = 0.01% chance, 1 = 0.001% chance # if a type is omitted from this section, the rarity won't drop at all from that type. -# these must match the ids of rarities defined on rarities.yml, otherwise they won't work. +# These must match the ids of rarities defined on rarities.yml, otherwise they won't work. # Types can be hostile, neutral, passive, boss and all. common: hostile: 100000