Fixed capi integration

This commit is contained in:
Olof Larsson 2011-12-15 16:49:47 +01:00
parent e9c8988ec6
commit 2c5a8872f2
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -11,8 +11,8 @@ public class CapiFeatures
{ {
public static void setup() public static void setup()
{ {
Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("CAPI"); Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("capi");
if (plug != null && plug.getClass().getName().equals("com.massivecraft.capi.CAPI")) if (plug != null && plug.getClass().getName().equals("com.massivecraft.capi.capi"))
{ {
P.p.log("Integration with the CAPI plugin was successful"); P.p.log("Integration with the CAPI plugin was successful");
P.p.registerEvent(Event.Type.CUSTOM_EVENT, new PluginCapiListener(P.p), Priority.Normal); P.p.registerEvent(Event.Type.CUSTOM_EVENT, new PluginCapiListener(P.p), Priority.Normal);

View File

@ -53,7 +53,7 @@ public class PluginCapiListener extends CapiListener
@Override @Override
public void onListChannelsEvent(CAPIListChannelsEvent event) public void onListChannelsEvent(CAPIListChannelsEvent event)
{ {
for (Channel c : Channels.i.get()) for (Channel c : Channels.i.getAll())
{ {
if (myChannelIds.contains(c.getId())) if (myChannelIds.contains(c.getId()))
{ {