mirror of
https://github.com/SimplexDevelopment/FeelingLucky.git
synced 2025-07-05 03:26:42 +00:00
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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user