mirror of
https://e.coding.net/circlecloud/PvPTitles.git
synced 2025-01-01 19:37:55 +00:00
feat: 随机值添加默认参数
This commit is contained in:
parent
13c94b14dc
commit
7ec451836b
@ -85,7 +85,7 @@ public class DatabaseHandler {
|
||||
final File file = new File(this.pvpTitles.getDataFolder(), "config.yml");
|
||||
final FileConfiguration config = YamlConfiguration.loadConfiguration(file);
|
||||
final List<String> configList = config.getStringList("RankNames");
|
||||
defaultPoints = config.getInt("defaultPoints");
|
||||
defaultPoints = config.getInt("defaultPoints", 50);
|
||||
for (int i = 0; i < configList.size(); i++) {
|
||||
this.rankList.put(i, configList.get(i));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user