Rename P --> Factions.

This commit is contained in:
Olof Larsson
2013-04-09 13:00:09 +02:00
parent 8a4b26cbd9
commit c88847bd3e
54 changed files with 171 additions and 171 deletions

View File

@@ -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");
}
}

View File

@@ -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());