Skip to content

Commit

Permalink
Update Version9.java
Browse files Browse the repository at this point in the history
hyperdefined committed Jan 26, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 393f9b7 commit 2b7c135
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -52,7 +52,8 @@ public void update() {
toolStats.logger.info("Updating config.yml to version 9.");
toolStats.config.set("config-version", 9);

toolStats.logger.info("Adding new tokens configuration!");
toolStats.logger.info("Adding new tokens configuration! Don't worry, this is disabled by default.");
toolStats.logger.info("You can find more information here: https://github.com/hyperdefined/ToolStats/wiki/Token-System");
// false by default so it doesn't break servers on updating
toolStats.config.set("tokens.enabled", false);
toolStats.config.set("tokens.craft-tokens", true);
@@ -71,6 +72,7 @@ public void update() {
addToken("damage-taken", "&7ToolStats: &8Damage Taken Token", "&8Combine with an armor piece in an anvil to track damage taken.");
addToken("arrows-shot", "&7ToolStats: &8Arrows Shot Token", "&8Combine with a bow or crossbow in an anvil to track arrows shot.");
addToken("flight-time", "&7ToolStats: &8Flight Time Token", "&8Combine with an elytra in an anvil to track flight time.");
addToken("reset", "&7ToolStats: &8Reset Token", "&8Combine in an anvil with to reset ALL stats for this item. Tokens on this item stay.");

// save the config and reload it
try {

0 comments on commit 2b7c135

Please sign in to comment.