mirror of
https://e.coding.net/circlecloud/ProtectItem.git
synced 2024-12-27 20:48:51 +00:00
fix aciton null...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
d36c9eb957
commit
f080fa0b1b
@ -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) {
|
||||
|
@ -0,0 +1 @@
|
||||
banitems: []
|
Loading…
Reference in New Issue
Block a user