diff --git a/README.md b/README.md index 9a53e66..9d93c4f 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Here is everything it tracks: The best part is, this data is stored on the item itself. You can also change how the lore is displayed on the items! -If item lore is ever incorrect, you can run `/toolstats reset` to reset the item lore so it's correct. +If item lore is ever incorrect/missing, you can run `/toolstats reset`. This command fixes the lore on whatever item you are holding. ![Image](https://raw.githubusercontent.com/hyperdefined/ToolStats/master/images/image.png) ![Image](https://raw.githubusercontent.com/hyperdefined/ToolStats/master/images/image2.png) diff --git a/src/main/java/lol/hyper/toolstats/ToolStats.java b/src/main/java/lol/hyper/toolstats/ToolStats.java index a2789a4..f37e1ac 100644 --- a/src/main/java/lol/hyper/toolstats/ToolStats.java +++ b/src/main/java/lol/hyper/toolstats/ToolStats.java @@ -21,12 +21,18 @@ import lol.hyper.githubreleaseapi.GitHubRelease; import lol.hyper.githubreleaseapi.GitHubReleaseAPI; import lol.hyper.toolstats.commands.CommandToolStats; import lol.hyper.toolstats.events.*; -import lol.hyper.toolstats.tools.*; +import lol.hyper.toolstats.tools.HashMaker; +import lol.hyper.toolstats.tools.ItemChecker; +import lol.hyper.toolstats.tools.ItemLore; +import lol.hyper.toolstats.tools.NumberFormat; import lol.hyper.toolstats.tools.config.ConfigTools; import lol.hyper.toolstats.tools.config.ConfigUpdater; import net.kyori.adventure.platform.bukkit.BukkitAudiences; import org.bstats.bukkit.Metrics; -import org.bukkit.*; +import org.bukkit.Bukkit; +import org.bukkit.Chunk; +import org.bukkit.NamespacedKey; +import org.bukkit.World; import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.entity.Entity; import org.bukkit.plugin.java.JavaPlugin; diff --git a/src/main/java/lol/hyper/toolstats/events/GenerateLoot.java b/src/main/java/lol/hyper/toolstats/events/GenerateLoot.java index 61a4e55..e310d9a 100644 --- a/src/main/java/lol/hyper/toolstats/events/GenerateLoot.java +++ b/src/main/java/lol/hyper/toolstats/events/GenerateLoot.java @@ -57,7 +57,7 @@ public class GenerateLoot implements Listener { if (inventoryHolder instanceof Chest) { Block openedChest = null; // look at the current list of opened chest and get the distance - // between the lootcontext location and chest location + // between the LootContext location and chest location // if the distance is less than 1, it's the same chest for (Block chest : toolStats.playerInteract.openedChests.keySet()) { Location chestLocation = chest.getLocation(); diff --git a/src/main/java/lol/hyper/toolstats/events/ShootBow.java b/src/main/java/lol/hyper/toolstats/events/ShootBow.java index 4ad5a22..8cb4282 100644 --- a/src/main/java/lol/hyper/toolstats/events/ShootBow.java +++ b/src/main/java/lol/hyper/toolstats/events/ShootBow.java @@ -36,7 +36,7 @@ import java.util.List; public class ShootBow implements Listener { - private ToolStats toolStats; + private final ToolStats toolStats; public ShootBow(ToolStats toolStats) { this.toolStats = toolStats; diff --git a/src/main/java/lol/hyper/toolstats/tools/config/ConfigUpdater.java b/src/main/java/lol/hyper/toolstats/tools/config/ConfigUpdater.java index a775fc9..cd28c1a 100644 --- a/src/main/java/lol/hyper/toolstats/tools/config/ConfigUpdater.java +++ b/src/main/java/lol/hyper/toolstats/tools/config/ConfigUpdater.java @@ -46,7 +46,6 @@ public class ConfigUpdater { } public void updateConfig() { - // get a copy of the current config int version = toolStats.config.getInt("config-version"); // this will be a switch in the future