public void savePlayersToDisk() {
YamlConfiguration config = file.returnYaml();
for (PlayerObject p : players.values()) {
String uuid = p.getUuid().toString();
config.set(uuid + ".current-cellphone-recipient", p.getCurrentCellPhoneRecipient());
// config.set(uuid + ".walkie-talkie.current-channel", p.getCurrentWalkieTalkieFrequency().getChannel());
// config.set(uuid + ".walkie-talkie.current-frequency", p.getCurrentWalkieTalkieFrequency().getFrequency());
config.set(uuid + ".notification-sound", p.receiveNotificationSound());
config.set(uuid + ".contacts", p.getContacts());
}
players.clear();
file.save(config);
}
PlayerManager.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:MT_Communication
作者:
评论列表
文章目录