added damage done system

This commit is contained in:
hyperdefined
2025-03-30 20:33:30 -04:00
parent e37048ff01
commit d0199a85e0
10 changed files with 460 additions and 128 deletions

View File

@@ -77,6 +77,10 @@ public final class ToolStats extends JavaPlugin {
* Stores how much damage an armor piece has taken.
*/
public final NamespacedKey armorDamage = new NamespacedKey(this, "damage-taken");
/**
* Stores how much damage a weapon has done.
*/
public final NamespacedKey damageDone = new NamespacedKey(this, "damage-done");
/**
* Key for tracking new elytras that spawn.
*/
@@ -113,7 +117,7 @@ public final class ToolStats extends JavaPlugin {
*/
public final NamespacedKey originType = new NamespacedKey(this, "origin");
public final int CONFIG_VERSION = 10;
public final int CONFIG_VERSION = 11;
public final Logger logger = this.getLogger();
public final File configFile = new File(this.getDataFolder(), "config.yml");
public boolean tokens = false;