1
0
mirror of https://e.coding.net/circlecloud/ProtectItem.git synced 2024-11-17 14:18:46 +00:00

fix aciton null...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
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") @SuppressWarnings("unchecked")
public ItemManager(final ProtectItem main) { public ItemManager(final ProtectItem main) {
plugin = main; plugin = main;
itemconfig = new FileConfig(plugin, "banitems"); itemconfig = new FileConfig(plugin, "banitems.yml");
itemlist = (HashMap<String, List<ActionType>>) itemconfig.get("banitems"); itemlist = (HashMap<String, List<ActionType>>) itemconfig.get("banitems");
if (itemlist == null) {
itemlist = new HashMap<String, List<ActionType>>();
}
} }
public void banItem(final ItemStack item) { public void banItem(final ItemStack item) {

View File

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