Skip to content

Commit cc4176c

Browse files
committed
awrf :3
1 parent bd30b05 commit cc4176c

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Here is everything it tracks:
2424

2525
The best part is, this data is stored on the item itself. You can also change how the lore is displayed on the items!
2626

27-
If item lore is ever incorrect, you can run `/toolstats reset` to reset the item lore so it's correct.
27+
If item lore is ever incorrect/missing, you can run `/toolstats reset`. This command fixes the lore on whatever item you are holding.
2828

2929
![Image](https://raw.githubusercontent.com/hyperdefined/ToolStats/master/images/image.png)
3030
![Image](https://raw.githubusercontent.com/hyperdefined/ToolStats/master/images/image2.png)

src/main/java/lol/hyper/toolstats/ToolStats.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@
2121
import lol.hyper.githubreleaseapi.GitHubReleaseAPI;
2222
import lol.hyper.toolstats.commands.CommandToolStats;
2323
import lol.hyper.toolstats.events.*;
24-
import lol.hyper.toolstats.tools.*;
24+
import lol.hyper.toolstats.tools.HashMaker;
25+
import lol.hyper.toolstats.tools.ItemChecker;
26+
import lol.hyper.toolstats.tools.ItemLore;
27+
import lol.hyper.toolstats.tools.NumberFormat;
2528
import lol.hyper.toolstats.tools.config.ConfigTools;
2629
import lol.hyper.toolstats.tools.config.ConfigUpdater;
2730
import net.kyori.adventure.platform.bukkit.BukkitAudiences;
2831
import org.bstats.bukkit.Metrics;
29-
import org.bukkit.*;
32+
import org.bukkit.Bukkit;
33+
import org.bukkit.Chunk;
34+
import org.bukkit.NamespacedKey;
35+
import org.bukkit.World;
3036
import org.bukkit.configuration.file.YamlConfiguration;
3137
import org.bukkit.entity.Entity;
3238
import org.bukkit.plugin.java.JavaPlugin;

src/main/java/lol/hyper/toolstats/events/GenerateLoot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void onGenerateLoot(LootGenerateEvent event) {
5757
if (inventoryHolder instanceof Chest) {
5858
Block openedChest = null;
5959
// look at the current list of opened chest and get the distance
60-
// between the lootcontext location and chest location
60+
// between the LootContext location and chest location
6161
// if the distance is less than 1, it's the same chest
6262
for (Block chest : toolStats.playerInteract.openedChests.keySet()) {
6363
Location chestLocation = chest.getLocation();

src/main/java/lol/hyper/toolstats/events/ShootBow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
public class ShootBow implements Listener {
3838

39-
private ToolStats toolStats;
39+
private final ToolStats toolStats;
4040

4141
public ShootBow(ToolStats toolStats) {
4242
this.toolStats = toolStats;

src/main/java/lol/hyper/toolstats/tools/config/ConfigUpdater.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public ConfigUpdater(ToolStats toolStats) {
4646
}
4747

4848
public void updateConfig() {
49-
// get a copy of the current config
5049
int version = toolStats.config.getInt("config-version");
5150

5251
// this will be a switch in the future

0 commit comments

Comments
 (0)