Alpha 1.0 RELEASE

This commit is contained in:
Paldiu
2022-04-10 18:48:09 -05:00
parent d08b240ff9
commit 057450c585
12 changed files with 325 additions and 199 deletions

View File

@ -30,11 +30,11 @@ public class PlayerHandler implements Listener {
@EventHandler
public void initializePlayer(PlayerLoginEvent event) {
Player player = event.getPlayer();
PlayerConfig playerConfig = FeelingLucky.getConfigMap().get(player.getUniqueId());
PlayerConfig playerConfig = plugin.getConfigMap().get(player.getUniqueId());
if (playerConfig == null) {
playerConfig = new PlayerConfig(plugin, player);
FeelingLucky.getConfigMap().put(player.getUniqueId(), playerConfig);
plugin.getConfigMap().put(player.getUniqueId(), playerConfig);
}
String username = playerConfig.getConfig().getString("username");
@ -47,7 +47,7 @@ public class PlayerHandler implements Listener {
playerConfig.load();
}
Luck container = new Luck(player, multiplier);
Luck container = new Luck(plugin, player, multiplier);
container.setValue(luck);
playerLuckMap.put(player, container);