public static void LoadMailBoxes() {
MemorySection ms = (MemorySection) MailYML.get("mailboxes");
if(ms == null) {
return;
}
for(String s : ms.getKeys(false)) {
OfflinePlayer p = Bukkit.getOfflinePlayer(MailYML.getString("mailboxes." + s + ".owner"));
World w = Bukkit.getWorld(MailYML.getString("mailboxes." + s + ".world"));
if(w == null) {
continue;
}
Block b = w.getBlockAt(MailYML.getInt("mailboxes." + s + ".x"), MailYML.getInt("mailboxes." + s + ".y"), MailYML.getInt("mailboxes." + s + ".z"));
if(!isChest(b)) {
continue;
}
Chest c = getChest(b);
MailItemBox mailBox = new MailItemBox(c, p);
}
}
MailItemsMailManager.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:MailItems
作者:
评论列表
文章目录