Skip to content

Commit

Permalink
Minor spelling & grammar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sarhatabaot committed Mar 15, 2024
1 parent 07b8c4b commit ca523b3
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.jetbrains.annotations.NotNull;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
* @author sarhatabaot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Pack> implements PackManager {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca523b3

Please sign in to comment.