Rename P --> Factions.
This commit is contained in:
@@ -4,7 +4,7 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
import com.massivecraft.factions.P;
|
||||
import com.massivecraft.factions.Factions;
|
||||
|
||||
public class HerochatFeatures implements Listener
|
||||
{
|
||||
@@ -13,7 +13,7 @@ public class HerochatFeatures implements Listener
|
||||
Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("Herochat");
|
||||
if (plug == null) return;
|
||||
if (!plug.getClass().getName().equals("com.dthielke.herochat.Herochat")) return;
|
||||
Bukkit.getPluginManager().registerEvents(new HerochatListener(P.p), P.p);
|
||||
P.p.log("Integration with Herochat successful");
|
||||
Bukkit.getPluginManager().registerEvents(new HerochatListener(Factions.p), Factions.p);
|
||||
Factions.p.log("Integration with Herochat successful");
|
||||
}
|
||||
}
|
||||
|
@@ -10,13 +10,13 @@ import com.dthielke.herochat.Herochat;
|
||||
import com.massivecraft.factions.Conf;
|
||||
import com.massivecraft.factions.FPlayer;
|
||||
import com.massivecraft.factions.FPlayers;
|
||||
import com.massivecraft.factions.P;
|
||||
import com.massivecraft.factions.Factions;
|
||||
import com.massivecraft.factions.listeners.FactionsChatListener;
|
||||
|
||||
public class HerochatListener implements Listener
|
||||
{
|
||||
P p;
|
||||
public HerochatListener(P p)
|
||||
Factions p;
|
||||
public HerochatListener(Factions p)
|
||||
{
|
||||
this.p = p;
|
||||
Herochat.getChannelManager().addChannel(new FactionChannel());
|
||||
|
Reference in New Issue
Block a user