Fixed capi integration
This commit is contained in:
		
							
								
								
									
										
											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()))
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user