Factions/src/com/massivecraft/factions/integration/capi/CapiFeatures.java

22 lines
629 B
Java
Raw Normal View History

2011-10-14 15:03:23 +02:00
package com.massivecraft.factions.integration.capi;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.Event.Priority;
import org.bukkit.plugin.Plugin;
import com.massivecraft.factions.P;
public class CapiFeatures
{
public static void setup()
{
Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("CAPI");
if (plug != null && plug.getClass().getName().equals("com.massivecraft.capi.CAPI"))
{
P.p.log("Integration with the CAPI plugin was successful");
P.p.registerEvent(Event.Type.CUSTOM_EVENT, new PluginCapiListener(P.p), Priority.Normal);
}
}
}