mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-06 18:49:34 +01: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()
|
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);
|
||||||
|
@ -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()))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user