mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-08-31 00:39:43 +02:00
Fixed capi integration
This commit is contained in:
parent
e9c8988ec6
commit
2c5a8872f2
BIN
lib/capi.jar
BIN
lib/capi.jar
Binary file not shown.
|
@ -11,8 +11,8 @@ 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"))
|
||||
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);
|
||||
|
|
|
@ -53,7 +53,7 @@ public class PluginCapiListener extends CapiListener
|
|||
@Override
|
||||
public void onListChannelsEvent(CAPIListChannelsEvent event)
|
||||
{
|
||||
for (Channel c : Channels.i.get())
|
||||
for (Channel c : Channels.i.getAll())
|
||||
{
|
||||
if (myChannelIds.contains(c.getId()))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user