added all types of containers to loot checking. also added trial chamber stuff
This commit is contained in:
hyperdefined
2025-11-05 17:19:45 -05:00
parent ab0d2a1ca1
commit 3da74fe656
4 changed files with 144 additions and 3 deletions

View File

@@ -151,6 +151,7 @@ public final class ToolStats extends JavaPlugin {
public TokenData tokenData;
public AnvilEvent anvilEvent;
public PrepareCraft prepareCraft;
public BlockDispenseEvent blockDispenseEvent;
public HyperLib hyperLib;
public TextUtils textUtils;
@@ -201,6 +202,7 @@ public final class ToolStats extends JavaPlugin {
shootBow = new ShootBow(this);
anvilEvent = new AnvilEvent(this);
prepareCraft = new PrepareCraft(this);
blockDispenseEvent = new BlockDispenseEvent(this);
// save which stat can be used by a reset token
tokenKeys.add(blocksMined);
@@ -231,6 +233,7 @@ public final class ToolStats extends JavaPlugin {
Bukkit.getServer().getPluginManager().registerEvents(playerMove, this);
Bukkit.getServer().getPluginManager().registerEvents(anvilEvent, this);
Bukkit.getServer().getPluginManager().registerEvents(prepareCraft, this);
Bukkit.getServer().getPluginManager().registerEvents(blockDispenseEvent, this);
this.getCommand("toolstats").setExecutor(commandToolStats);