Introduced compatibility with Custom Items v1.0.0
This commit is contained in:
parent
94e3c6d404
commit
56e0a841c2
@ -2,7 +2,6 @@
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="lib" path="libs/CustomItems.jar"/>
|
||||
<classpathentry kind="lib" path="libs/Factions.jar"/>
|
||||
<classpathentry kind="lib" path="libs/GriefPrevention.jar"/>
|
||||
<classpathentry kind="lib" path="libs/MassiveCore.jar"/>
|
||||
@ -12,5 +11,6 @@
|
||||
<classpathentry kind="lib" path="libs/craftbukkit-1.8.8.jar"/>
|
||||
<classpathentry kind="lib" path="libs/worldedit-bukkit-6.1.jar"/>
|
||||
<classpathentry kind="lib" path="libs/worldguard-6.1.jar"/>
|
||||
<classpathentry kind="lib" path="libs/CustomItems-1.0.0.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
BIN
libs/CustomItems-1.0.0.jar
Normal file
BIN
libs/CustomItems-1.0.0.jar
Normal file
Binary file not shown.
Binary file not shown.
@ -70,31 +70,31 @@ public class Support {
|
||||
public void CheckForPlugins() {
|
||||
if (ResidenceCore.Check()) {
|
||||
B_Residence = true;
|
||||
HerobrineAI.log.info("[Herobrine] Residence plugin detected on server.");
|
||||
HerobrineAI.log.info("[Herobrine] Residence plugin detected on server");
|
||||
}
|
||||
if (GriefPreventionCore.Check()) {
|
||||
B_GriefPrevention = true;
|
||||
HerobrineAI.log.info("[Herobrine] GriefPrevention plugin detected on server.");
|
||||
HerobrineAI.log.info("[Herobrine] GriefPrevention plugin detected on server");
|
||||
}
|
||||
if (TownyCore.Check()) {
|
||||
B_Towny = true;
|
||||
HerobrineAI.log.info("[Herobrine] Towny plugin detected on server.");
|
||||
HerobrineAI.log.info("[Herobrine] Towny plugin detected on server");
|
||||
}
|
||||
if (WorldGuard.Check()) {
|
||||
B_WorldGuard = true;
|
||||
HerobrineAI.log.info("[Herobrine] WorldGuard plugin detected on server.");
|
||||
HerobrineAI.log.info("[Herobrine] WorldGuard plugin detected on server");
|
||||
}
|
||||
if (PreciousStones.Check()) {
|
||||
B_PreciousStones = true;
|
||||
HerobrineAI.log.info("[Herobrine] PreciousStones plugin detected on server.");
|
||||
HerobrineAI.log.info("[Herobrine] PreciousStones plugin detected on server");
|
||||
}
|
||||
if (Factions.Check()) {
|
||||
B_Factions = true;
|
||||
HerobrineAI.log.info("[Herobrine] Factions plugin detected on server.");
|
||||
HerobrineAI.log.info("[Herobrine] Factions plugin detected on server");
|
||||
}
|
||||
if (this.CustomItems.Check()) {
|
||||
this.B_CustomItems = true;
|
||||
HerobrineAI.log.info("[HerobrineAI] CustomItems plugin detected!");
|
||||
HerobrineAI.log.info("[Herobrine] Custom Items plugin detected on server");
|
||||
this.CustomItems.init();
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,8 @@ package net.theprogrammersworld.herobrine.hooks;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.jakub1221.customitems.API;
|
||||
import org.jakub1221.customitems.CustomItems;
|
||||
import net.theprogrammersworld.customitems.API;
|
||||
import net.theprogrammersworld.customitems.CustomItems;
|
||||
|
||||
public class CustomItemsHook
|
||||
{
|
||||
@ -12,13 +12,13 @@ public class CustomItemsHook
|
||||
|
||||
public void init()
|
||||
{
|
||||
this.ci = ((CustomItems)Bukkit.getServer().getPluginManager().getPlugin("CustomItems"));
|
||||
this.ci = ((CustomItems)Bukkit.getServer().getPluginManager().getPlugin("Custom_Items"));
|
||||
this.api = CustomItems.getAPI();
|
||||
}
|
||||
|
||||
public boolean Check()
|
||||
{
|
||||
return Bukkit.getServer().getPluginManager().getPlugin("CustomItems") != null;
|
||||
return Bukkit.getServer().getPluginManager().getPlugin("Custom_Items") != null;
|
||||
}
|
||||
|
||||
public boolean checkItem(String name)
|
||||
|
Reference in New Issue
Block a user