2012-08-26 00:54:15 +02:00
|
|
|
package com.massivecraft.factions.integration.herochat;
|
|
|
|
|
|
|
|
import org.bukkit.Bukkit;
|
|
|
|
import org.bukkit.event.Listener;
|
|
|
|
import org.bukkit.plugin.Plugin;
|
|
|
|
|
2013-04-09 13:00:09 +02:00
|
|
|
import com.massivecraft.factions.Factions;
|
2012-08-26 00:54:15 +02:00
|
|
|
|
|
|
|
public class HerochatFeatures implements Listener
|
|
|
|
{
|
|
|
|
public static void setup()
|
|
|
|
{
|
|
|
|
Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("Herochat");
|
|
|
|
if (plug == null) return;
|
|
|
|
if (!plug.getClass().getName().equals("com.dthielke.herochat.Herochat")) return;
|
2013-04-09 13:12:13 +02:00
|
|
|
Bukkit.getPluginManager().registerEvents(new HerochatListener(Factions.get()), Factions.get());
|
|
|
|
Factions.get().log("Integration with Herochat successful");
|
2012-08-26 00:54:15 +02:00
|
|
|
}
|
|
|
|
}
|