Deleted CustomItemsHook. We no longer support CustomItems in the Herobrine 1.x release series, and we are not going to support it in the 2.x release series either.
This commit is contained in:
parent
0a87c80652
commit
956acaae91
@ -1,34 +0,0 @@
|
||||
package org.jakub1221.herobrineai.support;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.jakub1221.customitems.API;
|
||||
import org.jakub1221.customitems.CustomItems;
|
||||
|
||||
public class CustomItemsHook {
|
||||
|
||||
private CustomItems ci = null;
|
||||
private API api = null;
|
||||
|
||||
public void init() {
|
||||
ci = (CustomItems) Bukkit.getServer().getPluginManager().getPlugin("CustomItems");
|
||||
api = ci.getAPI();
|
||||
}
|
||||
|
||||
public boolean Check() {
|
||||
return (Bukkit.getServer().getPluginManager().getPlugin("CustomItems") != null);
|
||||
}
|
||||
|
||||
public boolean checkItem(String name) {
|
||||
if (ci != null) {
|
||||
return api.itemExist(name);
|
||||
}
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
public ItemStack getItem(String name) {
|
||||
return api.createItem(name);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user