Beta 20220416-SNAPSHOT

Changelog:
 - Changed the way classes interact with the PlayerHandler by using a getter instead of the actual field.
 - Added #isTool(Material) to ItemBuilder to check if an item is, in fact, a type of tool.
 - Created the UnbreakableTool listener which will grant the unbreakable status to a tool if a user is lucky enough.
  NOTE: This is a beta feature, and while it may remain included the way it works will most likely change.
This commit is contained in:
Paldiu
2022-04-16 17:27:54 -05:00
parent 077ed05d74
commit b424a83062
15 changed files with 91 additions and 36 deletions

View File

@ -47,7 +47,7 @@ public class PlayerConfig {
if (tempUsername == null) {
config.set("username", player.getName());
config.set("luck", plugin.handler.getLuckContainer(player).getDefaultValue());
config.set("luck", plugin.getHandler().getLuckContainer(player).getDefaultValue());
config.set("multiplier", "1.0");
save();
}