fix aciton null...

Signed-off-by: j502647092 <jtb1@163.com>
master
j502647092 2015-10-23 23:50:49 +08:00
parent d36c9eb957
commit f080fa0b1b
2 changed files with 5 additions and 1 deletions

View File

@ -18,8 +18,11 @@ public class ItemManager {
@SuppressWarnings("unchecked")
public ItemManager(final ProtectItem main) {
plugin = main;
itemconfig = new FileConfig(plugin, "banitems");
itemconfig = new FileConfig(plugin, "banitems.yml");
itemlist = (HashMap<String, List<ActionType>>) itemconfig.get("banitems");
if (itemlist == null) {
itemlist = new HashMap<String, List<ActionType>>();
}
}
public void banItem(final ItemStack item) {

View File

@ -0,0 +1 @@
banitems: []