File tree Expand file tree Collapse file tree 5 files changed +11
-6
lines changed
src/main/java/lol/hyper/toolstats Expand file tree Collapse file tree 5 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Here is everything it tracks:
2424
2525The 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 )
Original file line number Diff line number Diff line change 2121import lol .hyper .githubreleaseapi .GitHubReleaseAPI ;
2222import lol .hyper .toolstats .commands .CommandToolStats ;
2323import 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 ;
2528import lol .hyper .toolstats .tools .config .ConfigTools ;
2629import lol .hyper .toolstats .tools .config .ConfigUpdater ;
2730import net .kyori .adventure .platform .bukkit .BukkitAudiences ;
2831import 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 ;
3036import org .bukkit .configuration .file .YamlConfiguration ;
3137import org .bukkit .entity .Entity ;
3238import org .bukkit .plugin .java .JavaPlugin ;
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff line change 3636
3737public class ShootBow implements Listener {
3838
39- private ToolStats toolStats ;
39+ private final ToolStats toolStats ;
4040
4141 public ShootBow (ToolStats toolStats ) {
4242 this .toolStats = toolStats ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments