mirror of
https://github.com/SimplexDevelopment/FeelingLucky.git
synced 2025-07-05 03:26:42 +00:00
Beta 20220411-SNAPSHOT
Changelog: - Added ExpBoost feature - Added Special Rabbit Foot, which increases a user's luck multiplier. - Added ItemBuilder and MiniComponent library classes - Removed Messages#builder in favor of MiniComponent
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
package io.github.simplex.luck.player;
|
||||
|
||||
import io.github.simplex.luck.FeelingLucky;
|
||||
import io.github.simplex.luck.SneakyWorker;
|
||||
import io.github.simplex.luck.util.SneakyWorker;
|
||||
import org.bukkit.attribute.Attribute;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -50,9 +50,6 @@ public class PlayerConfig {
|
||||
config.set("luck", plugin.handler.getLuckContainer(player).getDefaultValue());
|
||||
config.set("multiplier", "1.0");
|
||||
save();
|
||||
} else if (!tempUsername.equalsIgnoreCase(player.getName())) {
|
||||
config.set("username", player.getName());
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,11 +77,21 @@ public class PlayerConfig {
|
||||
load();
|
||||
}
|
||||
|
||||
public void setUsername(String name) {
|
||||
config.set("username", name);
|
||||
save();
|
||||
}
|
||||
|
||||
public void setLuck(double luck) {
|
||||
config.set("luck", luck);
|
||||
save();
|
||||
}
|
||||
|
||||
public void setMultiplier(double multiplier) {
|
||||
config.set("multiplier", multiplier);
|
||||
save();
|
||||
}
|
||||
|
||||
public YamlConfiguration getConfig() {
|
||||
return config;
|
||||
}
|
||||
|
Reference in New Issue
Block a user