mirror of
https://github.com/SimplexDevelopment/FeelingLucky.git
synced 2025-07-05 19:46:41 +00:00
Alpha 1.0 RELEASE
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user