1
0
mirror of https://e.coding.net/circlecloud/PvPTitles.git synced 2025-01-01 19:37:55 +00:00

feat: 随机值添加默认参数

This commit is contained in:
502647092 2016-05-24 20:59:52 +08:00
parent 13c94b14dc
commit 7ec451836b

View File

@ -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));
}