Rename P --> Factions.
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
name: Factions
 | 
					name: Factions
 | 
				
			||||||
version: 2.0.0_dev
 | 
					version: 2.0.0_dev
 | 
				
			||||||
main: com.massivecraft.factions.P
 | 
					main: com.massivecraft.factions.Factions
 | 
				
			||||||
authors: [Olof Cayorion Larsson, Brett Flannigan]
 | 
					authors: [Olof Cayorion Larsson, Brett Flannigan]
 | 
				
			||||||
softdepend: [PermissionsEx, Permissions, Essentials, EssentialsChat, HeroChat, iChat, LocalAreaChat, LWC, nChat, ChatManager, CAPI, AuthMe, Vault, Spout, WorldEdit, WorldGuard, AuthDB, CaptureThePoints, CombatTag]
 | 
					softdepend: [PermissionsEx, Permissions, Essentials, EssentialsChat, HeroChat, iChat, LocalAreaChat, LWC, nChat, ChatManager, CAPI, AuthMe, Vault, Spout, WorldEdit, WorldGuard, AuthDB, CaptureThePoints, CombatTag]
 | 
				
			||||||
commands:
 | 
					commands:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,7 +23,7 @@ import com.massivecraft.factions.zcore.util.DiscUtil;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
public class Board
 | 
					public class Board
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	private static transient File file = new File(P.p.getDataFolder(), "board.json");
 | 
						private static transient File file = new File(Factions.p.getDataFolder(), "board.json");
 | 
				
			||||||
	private static transient HashMap<FLocation, TerritoryAccess> flocationIds = new HashMap<FLocation, TerritoryAccess>();
 | 
						private static transient HashMap<FLocation, TerritoryAccess> flocationIds = new HashMap<FLocation, TerritoryAccess>();
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	//----------------------------------------------//
 | 
						//----------------------------------------------//
 | 
				
			||||||
@@ -132,7 +132,7 @@ public class Board
 | 
				
			|||||||
				if(Conf.onUnclaimResetLwcLocks && LWCFeatures.getEnabled())
 | 
									if(Conf.onUnclaimResetLwcLocks && LWCFeatures.getEnabled())
 | 
				
			||||||
					LWCFeatures.clearAllChests(entry.getKey());
 | 
										LWCFeatures.clearAllChests(entry.getKey());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				P.p.log("Board cleaner removed "+entry.getValue().getHostFactionID()+" from "+entry.getKey());
 | 
									Factions.p.log("Board cleaner removed "+entry.getValue().getHostFactionID()+" from "+entry.getKey());
 | 
				
			||||||
				iter.remove();
 | 
									iter.remove();
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
@@ -188,7 +188,7 @@ public class Board
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
		ArrayList<String> ret = new ArrayList<String>();
 | 
							ArrayList<String> ret = new ArrayList<String>();
 | 
				
			||||||
		Faction factionLoc = getFactionAt(flocation);
 | 
							Faction factionLoc = getFactionAt(flocation);
 | 
				
			||||||
		ret.add(P.p.txt.titleize("("+flocation.getCoordString()+") "+factionLoc.getTag(observer)));
 | 
							ret.add(Factions.p.txt.titleize("("+flocation.getCoordString()+") "+factionLoc.getTag(observer)));
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		int halfWidth = Conf.mapWidth / 2;
 | 
							int halfWidth = Conf.mapWidth / 2;
 | 
				
			||||||
		int halfHeight = Conf.mapHeight / 2;
 | 
							int halfHeight = Conf.mapHeight / 2;
 | 
				
			||||||
@@ -234,7 +234,7 @@ public class Board
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		// Get the compass
 | 
							// Get the compass
 | 
				
			||||||
		ArrayList<String> asciiCompass = AsciiCompass.getAsciiCompass(inDegrees, ChatColor.RED, P.p.txt.parse("<a>"));
 | 
							ArrayList<String> asciiCompass = AsciiCompass.getAsciiCompass(inDegrees, ChatColor.RED, Factions.p.txt.parse("<a>"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Add the compass
 | 
							// Add the compass
 | 
				
			||||||
		ret.set(1, asciiCompass.get(0)+ret.get(1).substring(3*3));
 | 
							ret.set(1, asciiCompass.get(0)+ret.get(1).substring(3*3));
 | 
				
			||||||
@@ -309,12 +309,12 @@ public class Board
 | 
				
			|||||||
		
 | 
							
 | 
				
			||||||
		try
 | 
							try
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			DiscUtil.write(file, P.p.gson.toJson(dumpAsSaveFormat()));
 | 
								DiscUtil.write(file, Factions.p.gson.toJson(dumpAsSaveFormat()));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		catch (Exception e)
 | 
							catch (Exception e)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			e.printStackTrace();
 | 
								e.printStackTrace();
 | 
				
			||||||
			P.p.log("Failed to save the board to disk.");
 | 
								Factions.p.log("Failed to save the board to disk.");
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
@@ -323,11 +323,11 @@ public class Board
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	public static boolean load()
 | 
						public static boolean load()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		P.p.log("Loading board from disk");
 | 
							Factions.p.log("Loading board from disk");
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		if ( ! file.exists())
 | 
							if ( ! file.exists())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			P.p.log("No board to load from disk. Creating new file.");
 | 
								Factions.p.log("No board to load from disk. Creating new file.");
 | 
				
			||||||
			save();
 | 
								save();
 | 
				
			||||||
			return true;
 | 
								return true;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
@@ -335,13 +335,13 @@ public class Board
 | 
				
			|||||||
		try
 | 
							try
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			Type type = new TypeToken<Map<String,Map<String,TerritoryAccess>>>(){}.getType();
 | 
								Type type = new TypeToken<Map<String,Map<String,TerritoryAccess>>>(){}.getType();
 | 
				
			||||||
			Map<String,Map<String,TerritoryAccess>> worldCoordIds = P.p.gson.fromJson(DiscUtil.read(file), type);
 | 
								Map<String,Map<String,TerritoryAccess>> worldCoordIds = Factions.p.gson.fromJson(DiscUtil.read(file), type);
 | 
				
			||||||
			loadFromSaveFormat(worldCoordIds);
 | 
								loadFromSaveFormat(worldCoordIds);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		catch (Exception e)
 | 
							catch (Exception e)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			e.printStackTrace();
 | 
								e.printStackTrace();
 | 
				
			||||||
			P.p.log("Failed to load the board from disk.");
 | 
								Factions.p.log("Failed to load the board from disk.");
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -347,11 +347,11 @@ public class Conf
 | 
				
			|||||||
	private static transient Conf i = new Conf();
 | 
						private static transient Conf i = new Conf();
 | 
				
			||||||
	public static void load()
 | 
						public static void load()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		P.p.persist.loadOrSaveDefault(i, Conf.class, "conf");
 | 
							Factions.p.persist.loadOrSaveDefault(i, Conf.class, "conf");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	public static void save()
 | 
						public static void save()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		P.p.persist.save(i);
 | 
							Factions.p.persist.save(i);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -453,7 +453,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
 | 
				
			|||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		Faction factionHere = Board.getFactionAt(this.getLastStoodAt());
 | 
							Faction factionHere = Board.getFactionAt(this.getLastStoodAt());
 | 
				
			||||||
		String msg = P.p.txt.parse("<i>")+" ~ "+factionHere.getTag(this);
 | 
							String msg = Factions.p.txt.parse("<i>")+" ~ "+factionHere.getTag(this);
 | 
				
			||||||
		if (factionHere.getDescription().length() > 0)
 | 
							if (factionHere.getDescription().length() > 0)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			msg += " - "+factionHere.getDescription();
 | 
								msg += " - "+factionHere.getDescription();
 | 
				
			||||||
@@ -516,7 +516,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (Conf.logFactionLeave)
 | 
								if (Conf.logFactionLeave)
 | 
				
			||||||
				P.p.log(this.getName()+" left the faction: "+myFaction.getTag());
 | 
									Factions.p.log(this.getName()+" left the faction: "+myFaction.getTag());
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		this.resetFactionData();
 | 
							this.resetFactionData();
 | 
				
			||||||
@@ -531,7 +531,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			myFaction.detach();
 | 
								myFaction.detach();
 | 
				
			||||||
			if (Conf.logFactionDisband)
 | 
								if (Conf.logFactionDisband)
 | 
				
			||||||
				P.p.log("The faction "+myFaction.getTag()+" ("+myFaction.getId()+") was disbanded due to the last player ("+this.getName()+") leaving.");
 | 
									Factions.p.log("The faction "+myFaction.getTag()+" ("+myFaction.getId()+") was disbanded due to the last player ("+this.getName()+") leaving.");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -546,11 +546,11 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
 | 
				
			|||||||
		if (Conf.worldGuardChecking && Worldguard.checkForRegionsInChunk(location))
 | 
							if (Conf.worldGuardChecking && Worldguard.checkForRegionsInChunk(location))
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			// Checks for WorldGuard regions in the chunk attempting to be claimed
 | 
								// Checks for WorldGuard regions in the chunk attempting to be claimed
 | 
				
			||||||
			error = P.p.txt.parse("<b>This land is protected");
 | 
								error = Factions.p.txt.parse("<b>This land is protected");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (Conf.worldsNoClaiming.contains(flocation.getWorldName()))
 | 
							else if (Conf.worldsNoClaiming.contains(flocation.getWorldName()))
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			error = P.p.txt.parse("<b>Sorry, this world has land claiming disabled.");
 | 
								error = Factions.p.txt.parse("<b>Sorry, this world has land claiming disabled.");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (this.hasAdminMode())
 | 
							else if (this.hasAdminMode())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
@@ -558,7 +558,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		else if (forFaction == currentFaction)
 | 
							else if (forFaction == currentFaction)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			error = P.p.txt.parse("%s<i> already own this land.", forFaction.describeTo(this, true));
 | 
								error = Factions.p.txt.parse("%s<i> already own this land.", forFaction.describeTo(this, true));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if ( ! FPerm.TERRITORY.has(this, forFaction, true))
 | 
							else if ( ! FPerm.TERRITORY.has(this, forFaction, true))
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
@@ -566,23 +566,23 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		else if (forFaction.getFPlayers().size() < Conf.claimsRequireMinFactionMembers)
 | 
							else if (forFaction.getFPlayers().size() < Conf.claimsRequireMinFactionMembers)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			error = P.p.txt.parse("Factions must have at least <h>%s<b> members to claim land.", Conf.claimsRequireMinFactionMembers);
 | 
								error = Factions.p.txt.parse("Factions must have at least <h>%s<b> members to claim land.", Conf.claimsRequireMinFactionMembers);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (ownedLand >= forFaction.getPowerRounded())
 | 
							else if (ownedLand >= forFaction.getPowerRounded())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			error = P.p.txt.parse("<b>You can't claim more land! You need more power!");
 | 
								error = Factions.p.txt.parse("<b>You can't claim more land! You need more power!");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (Conf.claimedLandsMax != 0 && ownedLand >= Conf.claimedLandsMax && ! forFaction.getFlag(FFlag.INFPOWER))
 | 
							else if (Conf.claimedLandsMax != 0 && ownedLand >= Conf.claimedLandsMax && ! forFaction.getFlag(FFlag.INFPOWER))
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			error = P.p.txt.parse("<b>Limit reached. You can't claim more land!");
 | 
								error = Factions.p.txt.parse("<b>Limit reached. You can't claim more land!");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if ( ! Conf.claimingFromOthersAllowed && currentFaction.isNormal())
 | 
							else if ( ! Conf.claimingFromOthersAllowed && currentFaction.isNormal())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			error = P.p.txt.parse("<b>You may not claim land from others.");
 | 
								error = Factions.p.txt.parse("<b>You may not claim land from others.");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (currentFaction.getRelationTo(forFaction).isAtLeast(Rel.TRUCE) && ! currentFaction.isNone())
 | 
							else if (currentFaction.getRelationTo(forFaction).isAtLeast(Rel.TRUCE) && ! currentFaction.isNone())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			error = P.p.txt.parse("<b>You can't claim this land due to your relation with the current owner.");
 | 
								error = Factions.p.txt.parse("<b>You can't claim this land due to your relation with the current owner.");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if
 | 
							else if
 | 
				
			||||||
		(
 | 
							(
 | 
				
			||||||
@@ -594,20 +594,20 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
 | 
				
			|||||||
		)
 | 
							)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			if (Conf.claimsCanBeUnconnectedIfOwnedByOtherFaction)
 | 
								if (Conf.claimsCanBeUnconnectedIfOwnedByOtherFaction)
 | 
				
			||||||
				error = P.p.txt.parse("<b>You can only claim additional land which is connected to your first claim or controlled by another faction!");
 | 
									error = Factions.p.txt.parse("<b>You can only claim additional land which is connected to your first claim or controlled by another faction!");
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
				error = P.p.txt.parse("<b>You can only claim additional land which is connected to your first claim!");
 | 
									error = Factions.p.txt.parse("<b>You can only claim additional land which is connected to your first claim!");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (currentFaction.isNormal())
 | 
							else if (currentFaction.isNormal())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			if ( ! currentFaction.hasLandInflation())
 | 
								if ( ! currentFaction.hasLandInflation())
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				 // TODO more messages WARN current faction most importantly
 | 
									 // TODO more messages WARN current faction most importantly
 | 
				
			||||||
				error = P.p.txt.parse("%s<i> owns this land and is strong enough to keep it.", currentFaction.getTag(this));
 | 
									error = Factions.p.txt.parse("%s<i> owns this land and is strong enough to keep it.", currentFaction.getTag(this));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			else if ( ! Board.isBorderLocation(flocation))
 | 
								else if ( ! Board.isBorderLocation(flocation))
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				error = P.p.txt.parse("<b>You must start claiming land at the border of the territory.");
 | 
									error = Factions.p.txt.parse("<b>You must start claiming land at the border of the territory.");
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
@@ -673,7 +673,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
 | 
				
			|||||||
		SpoutFeatures.updateTerritoryDisplayLoc(flocation);
 | 
							SpoutFeatures.updateTerritoryDisplayLoc(flocation);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (Conf.logLandClaims)
 | 
							if (Conf.logLandClaims)
 | 
				
			||||||
			P.p.log(this.getName()+" claimed land at ("+flocation.getCoordString()+") for the faction: "+forFaction.getTag());
 | 
								Factions.p.log(this.getName()+" claimed land at ("+flocation.getCoordString()+") for the faction: "+forFaction.getTag());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		return true;
 | 
							return true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -692,6 +692,6 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	public void msg(String str, Object... args)
 | 
						public void msg(String str, Object... args)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.sendMessage(P.p.txt.parse(str, args));
 | 
							this.sendMessage(Factions.p.txt.parse(str, args));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,7 +14,7 @@ public class FPlayers extends PlayerEntityCollection<FPlayer>
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	public static FPlayers i = new FPlayers();
 | 
						public static FPlayers i = new FPlayers();
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	P p = P.p;
 | 
						Factions p = Factions.p;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	private FPlayers()
 | 
						private FPlayers()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
@@ -23,8 +23,8 @@ public class FPlayers extends PlayerEntityCollection<FPlayer>
 | 
				
			|||||||
			FPlayer.class,
 | 
								FPlayer.class,
 | 
				
			||||||
			new CopyOnWriteArrayList<FPlayer>(),
 | 
								new CopyOnWriteArrayList<FPlayer>(),
 | 
				
			||||||
			new ConcurrentSkipListMap<String, FPlayer>(String.CASE_INSENSITIVE_ORDER),
 | 
								new ConcurrentSkipListMap<String, FPlayer>(String.CASE_INSENSITIVE_ORDER),
 | 
				
			||||||
			new File(P.p.getDataFolder(), "players.json"),
 | 
								new File(Factions.p.getDataFolder(), "players.json"),
 | 
				
			||||||
			P.p.gson
 | 
								Factions.p.gson
 | 
				
			||||||
		);
 | 
							);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		this.setCreative(true);
 | 
							this.setCreative(true);
 | 
				
			||||||
@@ -63,7 +63,7 @@ public class FPlayers extends PlayerEntityCollection<FPlayer>
 | 
				
			|||||||
			if (fplayer.isOffline() && now - fplayer.getLastLoginTime() > toleranceMillis)
 | 
								if (fplayer.isOffline() && now - fplayer.getLastLoginTime() > toleranceMillis)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				if (Conf.logFactionLeave || Conf.logFactionKick)
 | 
									if (Conf.logFactionLeave || Conf.logFactionKick)
 | 
				
			||||||
					P.p.log("Player "+fplayer.getName()+" was auto-removed due to inactivity.");
 | 
										Factions.p.log("Player "+fplayer.getName()+" was auto-removed due to inactivity.");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				// if player is faction leader, sort out the faction since he's going away
 | 
									// if player is faction leader, sort out the faction since he's going away
 | 
				
			||||||
				if (fplayer.getRole() == Rel.LEADER)
 | 
									if (fplayer.getRole() == Rel.LEADER)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -452,7 +452,7 @@ public class Faction extends Entity implements EconomyParticipator
 | 
				
			|||||||
		ArrayList<Player> ret = new ArrayList<Player>();
 | 
							ArrayList<Player> ret = new ArrayList<Player>();
 | 
				
			||||||
		//if (this.isPlayerFreeType()) return ret;
 | 
							//if (this.isPlayerFreeType()) return ret;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		for (Player player: P.p.getServer().getOnlinePlayers())
 | 
							for (Player player: Factions.p.getServer().getOnlinePlayers())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			FPlayer fplayer = FPlayers.i.get(player);
 | 
								FPlayer fplayer = FPlayers.i.get(player);
 | 
				
			||||||
			if (fplayer.getFaction() == this)
 | 
								if (fplayer.getFaction() == this)
 | 
				
			||||||
@@ -488,7 +488,7 @@ public class Faction extends Entity implements EconomyParticipator
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			// no members left and faction isn't permanent, so disband it
 | 
								// no members left and faction isn't permanent, so disband it
 | 
				
			||||||
			if (Conf.logFactionDisband)
 | 
								if (Conf.logFactionDisband)
 | 
				
			||||||
				P.p.log("The faction "+this.getTag()+" ("+this.getId()+") has been disbanded since it has no members left.");
 | 
									Factions.p.log("The faction "+this.getTag()+" ("+this.getId()+") has been disbanded since it has no members left.");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			for (FPlayer fplayer : FPlayers.i.getOnline())
 | 
								for (FPlayer fplayer : FPlayers.i.getOnline())
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
@@ -503,7 +503,7 @@ public class Faction extends Entity implements EconomyParticipator
 | 
				
			|||||||
				oldLeader.setRole(Rel.MEMBER);
 | 
									oldLeader.setRole(Rel.MEMBER);
 | 
				
			||||||
			replacements.get(0).setRole(Rel.LEADER);
 | 
								replacements.get(0).setRole(Rel.LEADER);
 | 
				
			||||||
			this.msg("<i>Faction leader <h>%s<i> has been removed. %s<i> has been promoted as the new faction leader.", oldLeader == null ? "" : oldLeader.getName(), replacements.get(0).getName());
 | 
								this.msg("<i>Faction leader <h>%s<i> has been removed. %s<i> has been promoted as the new faction leader.", oldLeader == null ? "" : oldLeader.getName(), replacements.get(0).getName());
 | 
				
			||||||
			P.p.log("Faction "+this.getTag()+" ("+this.getId()+") leader was removed. Replacement leader: "+replacements.get(0).getName());
 | 
								Factions.p.log("Faction "+this.getTag()+" ("+this.getId()+") leader was removed. Replacement leader: "+replacements.get(0).getName());
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -512,7 +512,7 @@ public class Faction extends Entity implements EconomyParticipator
 | 
				
			|||||||
	//----------------------------------------------//
 | 
						//----------------------------------------------//
 | 
				
			||||||
	public void msg(String message, Object... args)
 | 
						public void msg(String message, Object... args)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		message = P.p.txt.parse(message, args);
 | 
							message = Factions.p.txt.parse(message, args);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		for (FPlayer fplayer : this.getFPlayersWhereOnline(true))
 | 
							for (FPlayer fplayer : this.getFPlayersWhereOnline(true))
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,7 +23,7 @@ public class FactionColl extends EntityCollection<Faction>
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	public static FactionColl i = new FactionColl();
 | 
						public static FactionColl i = new FactionColl();
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	P p = P.p;
 | 
						Factions p = Factions.p;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	private FactionColl()
 | 
						private FactionColl()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
@@ -32,8 +32,8 @@ public class FactionColl extends EntityCollection<Faction>
 | 
				
			|||||||
			Faction.class,
 | 
								Faction.class,
 | 
				
			||||||
			new CopyOnWriteArrayList<Faction>(),
 | 
								new CopyOnWriteArrayList<Faction>(),
 | 
				
			||||||
			new ConcurrentHashMap<String, Faction>(),
 | 
								new ConcurrentHashMap<String, Faction>(),
 | 
				
			||||||
			new File(P.p.getDataFolder(), "factions.json"),
 | 
								new File(Factions.p.getDataFolder(), "factions.json"),
 | 
				
			||||||
			P.p.gson
 | 
								Factions.p.gson
 | 
				
			||||||
		);
 | 
							);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
@@ -209,19 +209,19 @@ public class FactionColl extends EntityCollection<Faction>
 | 
				
			|||||||
		
 | 
							
 | 
				
			||||||
		if(MiscUtil.getComparisonString(str).length() < Conf.factionTagLengthMin)
 | 
							if(MiscUtil.getComparisonString(str).length() < Conf.factionTagLengthMin)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			errors.add(P.p.txt.parse("<i>The faction tag can't be shorter than <h>%s<i> chars.", Conf.factionTagLengthMin));
 | 
								errors.add(Factions.p.txt.parse("<i>The faction tag can't be shorter than <h>%s<i> chars.", Conf.factionTagLengthMin));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		if(str.length() > Conf.factionTagLengthMax)
 | 
							if(str.length() > Conf.factionTagLengthMax)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			errors.add(P.p.txt.parse("<i>The faction tag can't be longer than <h>%s<i> chars.", Conf.factionTagLengthMax));
 | 
								errors.add(Factions.p.txt.parse("<i>The faction tag can't be longer than <h>%s<i> chars.", Conf.factionTagLengthMax));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		for (char c : str.toCharArray())
 | 
							for (char c : str.toCharArray())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			if ( ! MiscUtil.substanceChars.contains(String.valueOf(c)))
 | 
								if ( ! MiscUtil.substanceChars.contains(String.valueOf(c)))
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				errors.add(P.p.txt.parse("<i>Faction tag must be alphanumeric. \"<h>%s<i>\" is not allowed.", c));
 | 
									errors.add(Factions.p.txt.parse("<i>Faction tag must be alphanumeric. \"<h>%s<i>\" is not allowed.", c));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
@@ -265,7 +265,7 @@ public class FactionColl extends EntityCollection<Faction>
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
		if ( ! Econ.shouldBeUsed()) return;
 | 
							if ( ! Econ.shouldBeUsed()) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		P.p.log("Running econLandRewardRoutine...");
 | 
							Factions.p.log("Running econLandRewardRoutine...");
 | 
				
			||||||
		for (Faction faction : this.get())
 | 
							for (Faction faction : this.get())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			int landCount = faction.getLandRounded();
 | 
								int landCount = faction.getLandRounded();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -46,10 +46,10 @@ import org.bukkit.command.CommandSender;
 | 
				
			|||||||
import org.bukkit.craftbukkit.libs.com.google.gson.GsonBuilder;
 | 
					import org.bukkit.craftbukkit.libs.com.google.gson.GsonBuilder;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class P extends MPlugin
 | 
					public class Factions extends MPlugin
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	// Our single plugin instance
 | 
						// Our single plugin instance
 | 
				
			||||||
	public static P p;
 | 
						public static Factions p;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	// Listeners
 | 
						// Listeners
 | 
				
			||||||
	public final FactionsPlayerListener playerListener;
 | 
						public final FactionsPlayerListener playerListener;
 | 
				
			||||||
@@ -71,7 +71,7 @@ public class P extends MPlugin
 | 
				
			|||||||
	public FCmdRoot cmdBase;
 | 
						public FCmdRoot cmdBase;
 | 
				
			||||||
	public CmdAutoHelp cmdAutoHelp;
 | 
						public CmdAutoHelp cmdAutoHelp;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	public P()
 | 
						public Factions()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		p = this;
 | 
							p = this;
 | 
				
			||||||
		this.playerListener = new FactionsPlayerListener(this);
 | 
							this.playerListener = new FactionsPlayerListener(this);
 | 
				
			||||||
@@ -91,7 +91,7 @@ public enum Perm
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	public boolean has(CommandSender sender, boolean informSenderIfNot)
 | 
						public boolean has(CommandSender sender, boolean informSenderIfNot)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		return P.p.perm.has(sender, this.node, informSenderIfNot);
 | 
							return Factions.p.perm.has(sender, this.node, informSenderIfNot);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	public boolean has(CommandSender sender)
 | 
						public boolean has(CommandSender sender)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ package com.massivecraft.factions.adapters;
 | 
				
			|||||||
import java.lang.reflect.Type;
 | 
					import java.lang.reflect.Type;
 | 
				
			||||||
import java.util.logging.Level;
 | 
					import java.util.logging.Level;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.util.LazyLocation;
 | 
					import com.massivecraft.factions.util.LazyLocation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.bukkit.craftbukkit.libs.com.google.gson.JsonDeserializationContext;
 | 
					import org.bukkit.craftbukkit.libs.com.google.gson.JsonDeserializationContext;
 | 
				
			||||||
@@ -44,7 +44,7 @@ public class LocationTypeAdapter implements JsonDeserializer<LazyLocation>, Json
 | 
				
			|||||||
		catch (Exception ex)
 | 
							catch (Exception ex)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			ex.printStackTrace();
 | 
								ex.printStackTrace();
 | 
				
			||||||
			P.p.log(Level.WARNING, "Error encountered while deserializing a LazyLocation.");
 | 
								Factions.p.log(Level.WARNING, "Error encountered while deserializing a LazyLocation.");
 | 
				
			||||||
			return null;
 | 
								return null;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -67,7 +67,7 @@ public class LocationTypeAdapter implements JsonDeserializer<LazyLocation>, Json
 | 
				
			|||||||
		catch (Exception ex)
 | 
							catch (Exception ex)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			ex.printStackTrace();
 | 
								ex.printStackTrace();
 | 
				
			||||||
			P.p.log(Level.WARNING, "Error encountered while serializing a LazyLocation.");
 | 
								Factions.p.log(Level.WARNING, "Error encountered while serializing a LazyLocation.");
 | 
				
			||||||
			return obj;
 | 
								return obj;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
package com.massivecraft.factions.cmd;
 | 
					package com.massivecraft.factions.cmd;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class CmdAdmin extends FCommand
 | 
					public class CmdAdmin extends FCommand
 | 
				
			||||||
@@ -30,12 +30,12 @@ public class CmdAdmin extends FCommand
 | 
				
			|||||||
		if ( fme.hasAdminMode())
 | 
							if ( fme.hasAdminMode())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			fme.msg("<i>You have enabled admin bypass mode.");
 | 
								fme.msg("<i>You have enabled admin bypass mode.");
 | 
				
			||||||
			P.p.log(fme.getName() + " has ENABLED admin bypass mode.");
 | 
								Factions.p.log(fme.getName() + " has ENABLED admin bypass mode.");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			fme.msg("<i>You have disabled admin bypass mode.");
 | 
								fme.msg("<i>You have disabled admin bypass mode.");
 | 
				
			||||||
			P.p.log(fme.getName() + " DISABLED admin bypass mode.");
 | 
								Factions.p.log(fme.getName() + " DISABLED admin bypass mode.");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,15 +2,15 @@ package com.massivecraft.factions.cmd;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import java.util.ArrayList;
 | 
					import java.util.ArrayList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.zcore.CommandVisibility;
 | 
					import com.massivecraft.factions.zcore.CommandVisibility;
 | 
				
			||||||
import com.massivecraft.factions.zcore.MCommand;
 | 
					import com.massivecraft.factions.zcore.MCommand;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class CmdAutoHelp extends MCommand<P>
 | 
					public class CmdAutoHelp extends MCommand<Factions>
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	public CmdAutoHelp()
 | 
						public CmdAutoHelp()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		super(P.p);
 | 
							super(Factions.p);
 | 
				
			||||||
		this.aliases.add("?");
 | 
							this.aliases.add("?");
 | 
				
			||||||
		this.aliases.add("h");
 | 
							this.aliases.add("h");
 | 
				
			||||||
		this.aliases.add("help");
 | 
							this.aliases.add("help");
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
package com.massivecraft.factions.cmd;
 | 
					package com.massivecraft.factions.cmd;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class CmdCape extends FCommand
 | 
					public class CmdCape extends FCommand
 | 
				
			||||||
@@ -30,7 +30,7 @@ public class CmdCape extends FCommand
 | 
				
			|||||||
	public void perform()
 | 
						public void perform()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.commandChain.add(this);
 | 
							this.commandChain.add(this);
 | 
				
			||||||
		P.p.cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
 | 
							Factions.p.cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ import org.bukkit.Material;
 | 
				
			|||||||
import org.bukkit.entity.Player;
 | 
					import org.bukkit.entity.Player;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.integration.SpoutFeatures;
 | 
					import com.massivecraft.factions.integration.SpoutFeatures;
 | 
				
			||||||
import com.massivecraft.factions.struct.FFlag;
 | 
					import com.massivecraft.factions.struct.FFlag;
 | 
				
			||||||
@@ -386,7 +386,7 @@ public class CmdConfig extends FCommand
 | 
				
			|||||||
			sendMessage(success);
 | 
								sendMessage(success);
 | 
				
			||||||
			if (sender instanceof Player)
 | 
								if (sender instanceof Player)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				P.p.log(success + " Command was run by "+fme.getName()+".");
 | 
									Factions.p.log(success + " Command was run by "+fme.getName()+".");
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		// save change to disk
 | 
							// save change to disk
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@ import com.massivecraft.factions.FPlayer;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.FactionColl;
 | 
					import com.massivecraft.factions.FactionColl;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.event.FPlayerJoinEvent;
 | 
					import com.massivecraft.factions.event.FPlayerJoinEvent;
 | 
				
			||||||
import com.massivecraft.factions.event.FactionCreateEvent;
 | 
					import com.massivecraft.factions.event.FactionCreateEvent;
 | 
				
			||||||
@@ -98,7 +98,7 @@ public class CmdCreate extends FCommand
 | 
				
			|||||||
		msg("<i>You should now: %s", p.cmdBase.cmdDescription.getUseageTemplate());
 | 
							msg("<i>You should now: %s", p.cmdBase.cmdDescription.getUseageTemplate());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (Conf.logFactionCreate)
 | 
							if (Conf.logFactionCreate)
 | 
				
			||||||
			P.p.log(fme.getName()+" created a new faction: "+tag);
 | 
								Factions.p.log(fme.getName()+" created a new faction: "+tag);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@ import com.massivecraft.factions.event.FactionDisbandEvent;
 | 
				
			|||||||
import com.massivecraft.factions.integration.Econ;
 | 
					import com.massivecraft.factions.integration.Econ;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.integration.SpoutFeatures;
 | 
					import com.massivecraft.factions.integration.SpoutFeatures;
 | 
				
			||||||
@@ -73,7 +73,7 @@ public class CmdDisband extends FCommand
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if (Conf.logFactionDisband)
 | 
							if (Conf.logFactionDisband)
 | 
				
			||||||
			P.p.log("The faction "+faction.getTag()+" ("+faction.getId()+") was disbanded by "+(senderIsConsole ? "console command" : fme.getName())+".");
 | 
								Factions.p.log("The faction "+faction.getTag()+" ("+faction.getId()+") was disbanded by "+(senderIsConsole ? "console command" : fme.getName())+".");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (Econ.shouldBeUsed() && ! senderIsConsole)
 | 
							if (Econ.shouldBeUsed() && ! senderIsConsole)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
@@ -85,7 +85,7 @@ public class CmdDisband extends FCommand
 | 
				
			|||||||
			{
 | 
								{
 | 
				
			||||||
				String amountString = Econ.moneyString(amount);
 | 
									String amountString = Econ.moneyString(amount);
 | 
				
			||||||
				msg("<i>You have been given the disbanded faction's bank, totaling %s.", amountString);
 | 
									msg("<i>You have been given the disbanded faction's bank, totaling %s.", amountString);
 | 
				
			||||||
				P.p.log(fme.getName() + " has been given bank holdings of "+amountString+" from disbanding "+faction.getTag()+".");
 | 
									Factions.p.log(fme.getName() + " has been given bank holdings of "+amountString+" from disbanding "+faction.getTag()+".");
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}		
 | 
							}		
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ package com.massivecraft.factions.cmd;
 | 
				
			|||||||
import java.util.ArrayList;
 | 
					import java.util.ArrayList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.integration.Econ;
 | 
					import com.massivecraft.factions.integration.Econ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -162,7 +162,7 @@ public class CmdHelp extends FCommand
 | 
				
			|||||||
		pageLines.add(p.txt.parse("<c>/f claim safezone <i>claim land for the Safe Zone"));
 | 
							pageLines.add(p.txt.parse("<c>/f claim safezone <i>claim land for the Safe Zone"));
 | 
				
			||||||
		pageLines.add(p.txt.parse("<c>/f claim warzone <i>claim land for the War Zone"));
 | 
							pageLines.add(p.txt.parse("<c>/f claim warzone <i>claim land for the War Zone"));
 | 
				
			||||||
		pageLines.add(p.txt.parse("<c>/f autoclaim [safezone|warzone] <i>take a guess"));
 | 
							pageLines.add(p.txt.parse("<c>/f autoclaim [safezone|warzone] <i>take a guess"));
 | 
				
			||||||
		pageLines.add(p.txt.parse("<i>Note: " + p.cmdBase.cmdUnclaim.getUseageTemplate(false) + P.p.txt.parse("<i>") + " works on safe/war zones as well."));
 | 
							pageLines.add(p.txt.parse("<i>Note: " + p.cmdBase.cmdUnclaim.getUseageTemplate(false) + Factions.p.txt.parse("<i>") + " works on safe/war zones as well."));
 | 
				
			||||||
		helpPages.add(pageLines);
 | 
							helpPages.add(pageLines);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		pageLines = new ArrayList<String>();
 | 
							pageLines = new ArrayList<String>();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ import com.massivecraft.factions.Conf;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.event.FPlayerJoinEvent;
 | 
					import com.massivecraft.factions.event.FPlayerJoinEvent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -103,9 +103,9 @@ public class CmdJoin extends FCommand
 | 
				
			|||||||
		if (Conf.logFactionJoin)
 | 
							if (Conf.logFactionJoin)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			if (samePlayer)
 | 
								if (samePlayer)
 | 
				
			||||||
				P.p.log("%s joined the faction %s.", fplayer.getName(), faction.getTag());
 | 
									Factions.p.log("%s joined the faction %s.", fplayer.getName(), faction.getTag());
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
				P.p.log("%s moved the player %s into the faction %s.", fme.getName(), fplayer.getName(), faction.getTag());
 | 
									Factions.p.log("%s moved the player %s into the faction %s.", fme.getName(), fplayer.getName(), faction.getTag());
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ import org.bukkit.Bukkit;
 | 
				
			|||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.event.FPlayerLeaveEvent;
 | 
					import com.massivecraft.factions.event.FPlayerLeaveEvent;
 | 
				
			||||||
import com.massivecraft.factions.struct.FPerm;
 | 
					import com.massivecraft.factions.struct.FPerm;
 | 
				
			||||||
@@ -79,7 +79,7 @@ public class CmdKick extends FCommand
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (Conf.logFactionKick)
 | 
							if (Conf.logFactionKick)
 | 
				
			||||||
			P.p.log((senderIsConsole ? "A console command" : fme.getName())+" kicked "+you.getName()+" from the faction: "+yourFaction.getTag());
 | 
								Factions.p.log((senderIsConsole ? "A console command" : fme.getName())+" kicked "+you.getName()+" from the faction: "+yourFaction.getTag());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (you.getRole() == Rel.LEADER)
 | 
							if (you.getRole() == Rel.LEADER)
 | 
				
			||||||
			yourFaction.promoteNewLeader();
 | 
								yourFaction.promoteNewLeader();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
package com.massivecraft.factions.cmd;
 | 
					package com.massivecraft.factions.cmd;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class CmdMoney extends FCommand
 | 
					public class CmdMoney extends FCommand
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@@ -41,7 +41,7 @@ public class CmdMoney extends FCommand
 | 
				
			|||||||
	public void perform()
 | 
						public void perform()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.commandChain.add(this);
 | 
							this.commandChain.add(this);
 | 
				
			||||||
		P.p.cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
 | 
							Factions.p.cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
package com.massivecraft.factions.cmd;
 | 
					package com.massivecraft.factions.cmd;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.iface.EconomyParticipator;
 | 
					import com.massivecraft.factions.iface.EconomyParticipator;
 | 
				
			||||||
import com.massivecraft.factions.integration.Econ;
 | 
					import com.massivecraft.factions.integration.Econ;
 | 
				
			||||||
@@ -39,7 +39,7 @@ public class CmdMoneyDeposit extends FCommand
 | 
				
			|||||||
		boolean success = Econ.transferMoney(fme, fme, faction, amount);
 | 
							boolean success = Econ.transferMoney(fme, fme, faction, amount);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (success && Conf.logMoneyTransactions)
 | 
							if (success && Conf.logMoneyTransactions)
 | 
				
			||||||
			P.p.log(ChatColor.stripColor(P.p.txt.parse("%s deposited %s in the faction bank: %s", fme.getName(), Econ.moneyString(amount), faction.describeTo(null))));
 | 
								Factions.p.log(ChatColor.stripColor(Factions.p.txt.parse("%s deposited %s in the faction bank: %s", fme.getName(), Econ.moneyString(amount), faction.describeTo(null))));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ package com.massivecraft.factions.cmd;
 | 
				
			|||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.iface.EconomyParticipator;
 | 
					import com.massivecraft.factions.iface.EconomyParticipator;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.integration.Econ;
 | 
					import com.massivecraft.factions.integration.Econ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.bukkit.ChatColor;
 | 
					import org.bukkit.ChatColor;
 | 
				
			||||||
@@ -42,6 +42,6 @@ public class CmdMoneyTransferFf extends FCommand
 | 
				
			|||||||
		boolean success = Econ.transferMoney(fme, from, to, amount);
 | 
							boolean success = Econ.transferMoney(fme, from, to, amount);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (success && Conf.logMoneyTransactions)
 | 
							if (success && Conf.logMoneyTransactions)
 | 
				
			||||||
			P.p.log(ChatColor.stripColor(P.p.txt.parse("%s transferred %s from the faction \"%s\" to the faction \"%s\"", fme.getName(), Econ.moneyString(amount), from.describeTo(null), to.describeTo(null))));
 | 
								Factions.p.log(ChatColor.stripColor(Factions.p.txt.parse("%s transferred %s from the faction \"%s\" to the faction \"%s\"", fme.getName(), Econ.moneyString(amount), from.describeTo(null), to.describeTo(null))));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ package com.massivecraft.factions.cmd;
 | 
				
			|||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.iface.EconomyParticipator;
 | 
					import com.massivecraft.factions.iface.EconomyParticipator;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.integration.Econ;
 | 
					import com.massivecraft.factions.integration.Econ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.bukkit.ChatColor;
 | 
					import org.bukkit.ChatColor;
 | 
				
			||||||
@@ -42,6 +42,6 @@ public class CmdMoneyTransferFp extends FCommand
 | 
				
			|||||||
		boolean success = Econ.transferMoney(fme, from, to, amount);
 | 
							boolean success = Econ.transferMoney(fme, from, to, amount);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (success && Conf.logMoneyTransactions)
 | 
							if (success && Conf.logMoneyTransactions)
 | 
				
			||||||
			P.p.log(ChatColor.stripColor(P.p.txt.parse("%s transferred %s from the faction \"%s\" to the player \"%s\"", fme.getName(), Econ.moneyString(amount), from.describeTo(null), to.describeTo(null))));
 | 
								Factions.p.log(ChatColor.stripColor(Factions.p.txt.parse("%s transferred %s from the faction \"%s\" to the player \"%s\"", fme.getName(), Econ.moneyString(amount), from.describeTo(null), to.describeTo(null))));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ package com.massivecraft.factions.cmd;
 | 
				
			|||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.iface.EconomyParticipator;
 | 
					import com.massivecraft.factions.iface.EconomyParticipator;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.integration.Econ;
 | 
					import com.massivecraft.factions.integration.Econ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.bukkit.ChatColor;
 | 
					import org.bukkit.ChatColor;
 | 
				
			||||||
@@ -42,6 +42,6 @@ public class CmdMoneyTransferPf extends FCommand
 | 
				
			|||||||
		boolean success = Econ.transferMoney(fme, from, to, amount);
 | 
							boolean success = Econ.transferMoney(fme, from, to, amount);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (success && Conf.logMoneyTransactions)
 | 
							if (success && Conf.logMoneyTransactions)
 | 
				
			||||||
			P.p.log(ChatColor.stripColor(P.p.txt.parse("%s transferred %s from the player \"%s\" to the faction \"%s\"", fme.getName(), Econ.moneyString(amount), from.describeTo(null), to.describeTo(null))));
 | 
								Factions.p.log(ChatColor.stripColor(Factions.p.txt.parse("%s transferred %s from the player \"%s\" to the faction \"%s\"", fme.getName(), Econ.moneyString(amount), from.describeTo(null), to.describeTo(null))));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ package com.massivecraft.factions.cmd;
 | 
				
			|||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.iface.EconomyParticipator;
 | 
					import com.massivecraft.factions.iface.EconomyParticipator;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.integration.Econ;
 | 
					import com.massivecraft.factions.integration.Econ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.bukkit.ChatColor;
 | 
					import org.bukkit.ChatColor;
 | 
				
			||||||
@@ -37,6 +37,6 @@ public class CmdMoneyWithdraw extends FCommand
 | 
				
			|||||||
		boolean success = Econ.transferMoney(fme, faction, fme, amount);
 | 
							boolean success = Econ.transferMoney(fme, faction, fme, amount);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (success && Conf.logMoneyTransactions)
 | 
							if (success && Conf.logMoneyTransactions)
 | 
				
			||||||
			P.p.log(ChatColor.stripColor(P.p.txt.parse("%s withdrew %s from the faction bank: %s", fme.getName(), Econ.moneyString(amount), faction.describeTo(null))));
 | 
								Factions.p.log(ChatColor.stripColor(Factions.p.txt.parse("%s withdrew %s from the faction bank: %s", fme.getName(), Econ.moneyString(amount), faction.describeTo(null))));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ package com.massivecraft.factions.cmd;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class CmdPowerBoost extends FCommand
 | 
					public class CmdPowerBoost extends FCommand
 | 
				
			||||||
@@ -67,6 +67,6 @@ public class CmdPowerBoost extends FCommand
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		msg("<i>"+target+" now has a power bonus/penalty of "+targetPower+" to min and max power levels.");
 | 
							msg("<i>"+target+" now has a power bonus/penalty of "+targetPower+" to min and max power levels.");
 | 
				
			||||||
		if (!senderIsConsole)
 | 
							if (!senderIsConsole)
 | 
				
			||||||
			P.p.log(fme.getName()+" has set the power bonus/penalty for "+target+" to "+targetPower+".");
 | 
								Factions.p.log(fme.getName()+" has set the power bonus/penalty for "+target+" to "+targetPower+".");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@ import com.massivecraft.factions.Board;
 | 
				
			|||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.FactionColl;
 | 
					import com.massivecraft.factions.FactionColl;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class CmdReload extends FCommand
 | 
					public class CmdReload extends FCommand
 | 
				
			||||||
@@ -65,7 +65,7 @@ public class CmdReload extends FCommand
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			P.p.log("RELOAD CANCELLED - SPECIFIED FILE INVALID");
 | 
								Factions.p.log("RELOAD CANCELLED - SPECIFIED FILE INVALID");
 | 
				
			||||||
			msg("<b>Invalid file specified. <i>Valid files: all, conf, board, factions, players");
 | 
								msg("<b>Invalid file specified. <i>Valid files: all, conf, board, factions, players");
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@ import com.massivecraft.factions.integration.Econ;
 | 
				
			|||||||
import com.massivecraft.factions.integration.SpoutFeatures;
 | 
					import com.massivecraft.factions.integration.SpoutFeatures;
 | 
				
			||||||
import com.massivecraft.factions.FLocation;
 | 
					import com.massivecraft.factions.FLocation;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.struct.FPerm;
 | 
					import com.massivecraft.factions.struct.FPerm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -64,7 +64,7 @@ public class CmdUnclaim extends FCommand
 | 
				
			|||||||
		myFaction.msg("%s<i> unclaimed some land.", fme.describeTo(myFaction, true));
 | 
							myFaction.msg("%s<i> unclaimed some land.", fme.describeTo(myFaction, true));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (Conf.logLandUnclaims)
 | 
							if (Conf.logLandUnclaims)
 | 
				
			||||||
			P.p.log(fme.getName()+" unclaimed land at ("+flocation.getCoordString()+") from the faction: "+otherFaction.getTag());
 | 
								Factions.p.log(fme.getName()+" unclaimed land at ("+flocation.getCoordString()+") from the faction: "+otherFaction.getTag());
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@ import org.bukkit.Bukkit;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.Board;
 | 
					import com.massivecraft.factions.Board;
 | 
				
			||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.event.LandUnclaimAllEvent;
 | 
					import com.massivecraft.factions.event.LandUnclaimAllEvent;
 | 
				
			||||||
import com.massivecraft.factions.integration.Econ;
 | 
					import com.massivecraft.factions.integration.Econ;
 | 
				
			||||||
@@ -54,7 +54,7 @@ public class CmdUnclaimall extends FCommand
 | 
				
			|||||||
		SpoutFeatures.updateTerritoryDisplayLoc(null);
 | 
							SpoutFeatures.updateTerritoryDisplayLoc(null);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (Conf.logLandUnclaims)
 | 
							if (Conf.logLandUnclaims)
 | 
				
			||||||
			P.p.log(fme.getName()+" unclaimed everything for the faction: "+myFaction.getTag());
 | 
								Factions.p.log(fme.getName()+" unclaimed everything for the faction: "+myFaction.getTag());
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
package com.massivecraft.factions.cmd;
 | 
					package com.massivecraft.factions.cmd;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -25,6 +25,6 @@ public class CmdVersion extends FCommand
 | 
				
			|||||||
	@Override
 | 
						@Override
 | 
				
			||||||
	public void perform()
 | 
						public void perform()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		msg("<i>You are running "+P.p.getDescription().getFullName());
 | 
							msg("<i>You are running "+Factions.p.getDescription().getFullName());
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ package com.massivecraft.factions.cmd;
 | 
				
			|||||||
import java.util.Collections;
 | 
					import java.util.Collections;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class FCmdRoot extends FCommand
 | 
					public class FCmdRoot extends FCommand
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@@ -69,7 +69,7 @@ public class FCmdRoot extends FCommand
 | 
				
			|||||||
		this.setHelpShort("The faction base command");
 | 
							this.setHelpShort("The faction base command");
 | 
				
			||||||
		this.helpLong.add(p.txt.parseTags("<i>This command contains all faction stuff."));
 | 
							this.helpLong.add(p.txt.parseTags("<i>This command contains all faction stuff."));
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		this.addSubCommand(P.p.cmdAutoHelp);
 | 
							this.addSubCommand(Factions.p.cmdAutoHelp);
 | 
				
			||||||
		this.addSubCommand(this.cmdList);
 | 
							this.addSubCommand(this.cmdList);
 | 
				
			||||||
		this.addSubCommand(this.cmdShow);
 | 
							this.addSubCommand(this.cmdShow);
 | 
				
			||||||
		this.addSubCommand(this.cmdPower);
 | 
							this.addSubCommand(this.cmdPower);
 | 
				
			||||||
@@ -118,7 +118,7 @@ public class FCmdRoot extends FCommand
 | 
				
			|||||||
	public void perform()
 | 
						public void perform()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.commandChain.add(this);
 | 
							this.commandChain.add(this);
 | 
				
			||||||
		P.p.cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
 | 
							Factions.p.cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,14 +11,14 @@ import com.massivecraft.factions.FPlayer;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.FactionColl;
 | 
					import com.massivecraft.factions.FactionColl;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.struct.FFlag;
 | 
					import com.massivecraft.factions.struct.FFlag;
 | 
				
			||||||
import com.massivecraft.factions.struct.FPerm;
 | 
					import com.massivecraft.factions.struct.FPerm;
 | 
				
			||||||
import com.massivecraft.factions.struct.Rel;
 | 
					import com.massivecraft.factions.struct.Rel;
 | 
				
			||||||
import com.massivecraft.factions.zcore.MCommand;
 | 
					import com.massivecraft.factions.zcore.MCommand;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public abstract class FCommand extends MCommand<P>
 | 
					public abstract class FCommand extends MCommand<Factions>
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	public boolean disableOnLock;
 | 
						public boolean disableOnLock;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
@@ -32,7 +32,7 @@ public abstract class FCommand extends MCommand<P>
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	public FCommand()
 | 
						public FCommand()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		super(P.p);
 | 
							super(Factions.p);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		// Due to safety reasons it defaults to disable on lock.
 | 
							// Due to safety reasons it defaults to disable on lock.
 | 
				
			||||||
		disableOnLock = true;
 | 
							disableOnLock = true;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@ import com.massivecraft.factions.Conf;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.FactionColl;
 | 
					import com.massivecraft.factions.FactionColl;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.iface.EconomyParticipator;
 | 
					import com.massivecraft.factions.iface.EconomyParticipator;
 | 
				
			||||||
import com.massivecraft.factions.struct.FPerm;
 | 
					import com.massivecraft.factions.struct.FPerm;
 | 
				
			||||||
import com.massivecraft.factions.util.RelationUtil;
 | 
					import com.massivecraft.factions.util.RelationUtil;
 | 
				
			||||||
@@ -32,22 +32,22 @@ public class Econ
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		if (Bukkit.getServer().getPluginManager().getPlugin("Vault") == null)
 | 
							if (Bukkit.getServer().getPluginManager().getPlugin("Vault") == null)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			P.p.log(integrationFail+"is not installed.");
 | 
								Factions.p.log(integrationFail+"is not installed.");
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		RegisteredServiceProvider<Economy> rsp = Bukkit.getServer().getServicesManager().getRegistration(Economy.class);
 | 
							RegisteredServiceProvider<Economy> rsp = Bukkit.getServer().getServicesManager().getRegistration(Economy.class);
 | 
				
			||||||
		if (rsp == null)
 | 
							if (rsp == null)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			P.p.log(integrationFail+"is not hooked into an economy plugin.");
 | 
								Factions.p.log(integrationFail+"is not hooked into an economy plugin.");
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		econ = rsp.getProvider();
 | 
							econ = rsp.getProvider();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		P.p.log("Economy integration through Vault plugin successful.");
 | 
							Factions.p.log("Economy integration through Vault plugin successful.");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if ( ! Conf.econEnabled)
 | 
							if ( ! Conf.econEnabled)
 | 
				
			||||||
			P.p.log("NOTE: Economy is disabled. You can enable it with the command: f config econEnabled true");
 | 
								Factions.p.log("NOTE: Economy is disabled. You can enable it with the command: f config econEnabled true");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		oldMoneyDoTransfer();
 | 
							oldMoneyDoTransfer();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -78,7 +78,7 @@ public class Econ
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
		if (!shouldBeUsed())
 | 
							if (!shouldBeUsed())
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			P.p.log(Level.WARNING, "Vault does not appear to be hooked into an economy plugin.");
 | 
								Factions.p.log(Level.WARNING, "Vault does not appear to be hooked into an economy plugin.");
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		to.msg("<a>%s's<i> balance is <h>%s<i>.", about.describeTo(to, true), Econ.moneyString(econ.getBalance(about.getAccountId())));
 | 
							to.msg("<a>%s's<i> balance is <h>%s<i>.", about.describeTo(to, true), Econ.moneyString(econ.getBalance(about.getAccountId())));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,7 +10,7 @@ import org.bukkit.Location;
 | 
				
			|||||||
import org.bukkit.plugin.Plugin;
 | 
					import org.bukkit.plugin.Plugin;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.listeners.FactionsChatListener;
 | 
					import com.massivecraft.factions.listeners.FactionsChatListener;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.earth2me.essentials.IEssentials;
 | 
					import com.earth2me.essentials.IEssentials;
 | 
				
			||||||
@@ -104,8 +104,8 @@ public class EssentialsFeatures
 | 
				
			|||||||
		essChat = instance;
 | 
							essChat = instance;
 | 
				
			||||||
		try
 | 
							try
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			Bukkit.getServer().getPluginManager().registerEvents(new LocalChatListener(), P.p);
 | 
								Bukkit.getServer().getPluginManager().registerEvents(new LocalChatListener(), Factions.p);
 | 
				
			||||||
			P.p.log("Found and will integrate chat with newer "+essChat.getDescription().getFullName());
 | 
								Factions.p.log("Found and will integrate chat with newer "+essChat.getDescription().getFullName());
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		catch (NoSuchMethodError ex)
 | 
							catch (NoSuchMethodError ex)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ package com.massivecraft.factions.integration;
 | 
				
			|||||||
import org.bukkit.entity.Player;
 | 
					import org.bukkit.entity.Player;
 | 
				
			||||||
import org.bukkit.event.player.AsyncPlayerChatEvent;
 | 
					import org.bukkit.event.player.AsyncPlayerChatEvent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.listeners.FactionsChatListener;
 | 
					import com.massivecraft.factions.listeners.FactionsChatListener;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.earth2me.essentials.chat.EssentialsChat;
 | 
					import com.earth2me.essentials.chat.EssentialsChat;
 | 
				
			||||||
@@ -27,7 +27,7 @@ public class EssentialsOldVersionFeatures
 | 
				
			|||||||
			{
 | 
								{
 | 
				
			||||||
				public boolean shouldHandleThisChat(AsyncPlayerChatEvent event)
 | 
									public boolean shouldHandleThisChat(AsyncPlayerChatEvent event)
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					return P.p.shouldLetFactionsHandleThisChat(event);
 | 
										return Factions.p.shouldLetFactionsHandleThisChat(event);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				public String modifyMessage(AsyncPlayerChatEvent event, Player target, String message)
 | 
									public String modifyMessage(AsyncPlayerChatEvent event, Player target, String message)
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
@@ -35,7 +35,7 @@ public class EssentialsOldVersionFeatures
 | 
				
			|||||||
					//return message.replace(Conf.chatTagReplaceString, P.p.getPlayerFactionTagRelation(event.getPlayer(), target)).replace("[FACTION_TITLE]", P.p.getPlayerTitle(event.getPlayer()));
 | 
										//return message.replace(Conf.chatTagReplaceString, P.p.getPlayerFactionTagRelation(event.getPlayer(), target)).replace("[FACTION_TITLE]", P.p.getPlayerTitle(event.getPlayer()));
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
			P.p.log("Found and will integrate chat with "+essChat.getDescription().getFullName());
 | 
								Factions.p.log("Found and will integrate chat with "+essChat.getDescription().getFullName());
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		catch (NoSuchMethodError ex)
 | 
							catch (NoSuchMethodError ex)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@ import com.massivecraft.factions.Conf;
 | 
				
			|||||||
import com.massivecraft.factions.FLocation;
 | 
					import com.massivecraft.factions.FLocation;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class LWCFeatures 
 | 
					public class LWCFeatures 
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@@ -29,7 +29,7 @@ public class LWCFeatures
 | 
				
			|||||||
		if(test == null || !test.isEnabled()) return;
 | 
							if(test == null || !test.isEnabled()) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		lwc = ((LWCPlugin)test).getLWC();
 | 
							lwc = ((LWCPlugin)test).getLWC();
 | 
				
			||||||
		P.p.log("Successfully hooked into LWC!"+(Conf.lwcIntegration ? "" : " Integration is currently disabled, though (\"lwcIntegration\")."));
 | 
							Factions.p.log("Successfully hooked into LWC!"+(Conf.lwcIntegration ? "" : " Integration is currently disabled, though (\"lwcIntegration\")."));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public static boolean getEnabled()
 | 
						public static boolean getEnabled()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@ import com.massivecraft.factions.FPlayer;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.FLocation;
 | 
					import com.massivecraft.factions.FLocation;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.bukkit.Bukkit;
 | 
					import org.bukkit.Bukkit;
 | 
				
			||||||
import org.bukkit.ChatColor;
 | 
					import org.bukkit.ChatColor;
 | 
				
			||||||
@@ -50,9 +50,9 @@ public class SpoutFeatures
 | 
				
			|||||||
		if (enabled == true) return true;
 | 
							if (enabled == true) return true;
 | 
				
			||||||
		enabled = true;
 | 
							enabled = true;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		P.p.log("Found and will use features of "+plugin.getDescription().getFullName());
 | 
							Factions.p.log("Found and will use features of "+plugin.getDescription().getFullName());
 | 
				
			||||||
		mainListener = new SpoutMainListener();
 | 
							mainListener = new SpoutMainListener();
 | 
				
			||||||
		Bukkit.getPluginManager().registerEvents(mainListener, P.p);
 | 
							Bukkit.getPluginManager().registerEvents(mainListener, Factions.p);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		return true;
 | 
							return true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -112,7 +112,7 @@ public class SpoutFeatures
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	public static void updateCapeShortly(final Object ofrom, final Object oto)
 | 
						public static void updateCapeShortly(final Object ofrom, final Object oto)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		P.p.getServer().getScheduler().scheduleSyncDelayedTask(P.p, new Runnable()
 | 
							Factions.p.getServer().getScheduler().scheduleSyncDelayedTask(Factions.p, new Runnable()
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			@Override
 | 
								@Override
 | 
				
			||||||
			public void run()
 | 
								public void run()
 | 
				
			||||||
@@ -168,7 +168,7 @@ public class SpoutFeatures
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	public static void updateTitleShortly(final Object ofrom, final Object oto)
 | 
						public static void updateTitleShortly(final Object ofrom, final Object oto)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		P.p.getServer().getScheduler().scheduleSyncDelayedTask(P.p, new Runnable()
 | 
							Factions.p.getServer().getScheduler().scheduleSyncDelayedTask(Factions.p, new Runnable()
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			@Override
 | 
								@Override
 | 
				
			||||||
			public void run()
 | 
								public void run()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,7 +14,7 @@ import com.massivecraft.factions.FLocation;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.struct.TerritoryAccess;
 | 
					import com.massivecraft.factions.struct.TerritoryAccess;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.getspout.spoutapi.event.spout.SpoutCraftEnableEvent;
 | 
					import org.getspout.spoutapi.event.spout.SpoutCraftEnableEvent;
 | 
				
			||||||
@@ -107,7 +107,7 @@ public class SpoutMainListener implements Listener
 | 
				
			|||||||
				label.setWidth(1).setHeight(1);  // prevent Spout's questionable new "no default size" warning
 | 
									label.setWidth(1).setHeight(1);  // prevent Spout's questionable new "no default size" warning
 | 
				
			||||||
				label.setScale(Conf.spoutTerritoryDisplaySize);
 | 
									label.setScale(Conf.spoutTerritoryDisplaySize);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				sPlayer.getMainScreen().attachWidget(P.p, label);
 | 
									sPlayer.getMainScreen().attachWidget(Factions.p, label);
 | 
				
			||||||
				territoryLabels.put(player.getName(), label);
 | 
									territoryLabels.put(player.getName(), label);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -135,7 +135,7 @@ public class SpoutMainListener implements Listener
 | 
				
			|||||||
				label.setWidth(1).setHeight(1);  // prevent Spout's questionable new "no default size" warning
 | 
									label.setWidth(1).setHeight(1);  // prevent Spout's questionable new "no default size" warning
 | 
				
			||||||
				label.setScale(Conf.spoutTerritoryNoticeSize);
 | 
									label.setScale(Conf.spoutTerritoryNoticeSize);
 | 
				
			||||||
				label.setY(Conf.spoutTerritoryNoticeTop);
 | 
									label.setY(Conf.spoutTerritoryNoticeTop);
 | 
				
			||||||
				sPlayer.getMainScreen().attachWidget(P.p, label);
 | 
									sPlayer.getMainScreen().attachWidget(Factions.p, label);
 | 
				
			||||||
				territoryChangeLabels.put(player.getName(), label);
 | 
									territoryChangeLabels.put(player.getName(), label);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -172,7 +172,7 @@ public class SpoutMainListener implements Listener
 | 
				
			|||||||
			label.setWidth(1).setHeight(1);  // prevent Spout's questionable new "no default size" warning
 | 
								label.setWidth(1).setHeight(1);  // prevent Spout's questionable new "no default size" warning
 | 
				
			||||||
			label.setScale(Conf.spoutTerritoryDisplaySize);
 | 
								label.setScale(Conf.spoutTerritoryDisplaySize);
 | 
				
			||||||
			label.setY((int)(10 * Conf.spoutTerritoryDisplaySize));
 | 
								label.setY((int)(10 * Conf.spoutTerritoryDisplaySize));
 | 
				
			||||||
			sPlayer.getMainScreen().attachWidget(P.p, label);
 | 
								sPlayer.getMainScreen().attachWidget(Factions.p, label);
 | 
				
			||||||
			accessLabels.put(player.getName(), label);
 | 
								accessLabels.put(player.getName(), label);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
package com.massivecraft.factions.integration;
 | 
					package com.massivecraft.factions.integration;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import java.util.ArrayList;
 | 
					import java.util.ArrayList;
 | 
				
			||||||
import java.util.List;
 | 
					import java.util.List;
 | 
				
			||||||
import java.util.Map;
 | 
					import java.util.Map;
 | 
				
			||||||
@@ -39,13 +39,13 @@ public class Worldguard
 | 
				
			|||||||
		{
 | 
							{
 | 
				
			||||||
			enabled = false;
 | 
								enabled = false;
 | 
				
			||||||
			wg = null;
 | 
								wg = null;
 | 
				
			||||||
			P.p.log("Could not hook to WorldGuard. WorldGuard checks are disabled.");
 | 
								Factions.p.log("Could not hook to WorldGuard. WorldGuard checks are disabled.");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			wg = (WorldGuardPlugin) wgplug;
 | 
								wg = (WorldGuardPlugin) wgplug;
 | 
				
			||||||
			enabled = true;
 | 
								enabled = true;
 | 
				
			||||||
			P.p.log("Successfully hooked to WorldGuard.");
 | 
								Factions.p.log("Successfully hooked to WorldGuard.");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ package com.massivecraft.factions.integration.capi;
 | 
				
			|||||||
import org.bukkit.Bukkit;
 | 
					import org.bukkit.Bukkit;
 | 
				
			||||||
import org.bukkit.plugin.Plugin;
 | 
					import org.bukkit.plugin.Plugin;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class CapiFeatures
 | 
					public class CapiFeatures
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@@ -12,8 +12,8 @@ public class CapiFeatures
 | 
				
			|||||||
		Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("capi");
 | 
							Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("capi");
 | 
				
			||||||
		if (plug != null && plug.getClass().getName().equals("com.massivecraft.capi.P"))
 | 
							if (plug != null && plug.getClass().getName().equals("com.massivecraft.capi.P"))
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			P.p.log("Integration with the CAPI plugin was successful");
 | 
								Factions.p.log("Integration with the CAPI plugin was successful");
 | 
				
			||||||
			Bukkit.getPluginManager().registerEvents(new PluginCapiListener(P.p), P.p);
 | 
								Bukkit.getPluginManager().registerEvents(new PluginCapiListener(Factions.p), Factions.p);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,16 +18,16 @@ import com.massivecraft.capi.events.CAPISelectChannelEvent;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.struct.Rel;
 | 
					import com.massivecraft.factions.struct.Rel;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class PluginCapiListener implements Listener
 | 
					public class PluginCapiListener implements Listener
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	P p;
 | 
						Factions p;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	Set<String> myChannelIds = new LinkedHashSet<String>();
 | 
						Set<String> myChannelIds = new LinkedHashSet<String>();
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	public PluginCapiListener(P p)
 | 
						public PluginCapiListener(Factions p)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.p = p;
 | 
							this.p = p;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@ import org.bukkit.Bukkit;
 | 
				
			|||||||
import org.bukkit.event.Listener;
 | 
					import org.bukkit.event.Listener;
 | 
				
			||||||
import org.bukkit.plugin.Plugin;
 | 
					import org.bukkit.plugin.Plugin;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class HerochatFeatures implements Listener
 | 
					public class HerochatFeatures implements Listener
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@@ -13,7 +13,7 @@ public class HerochatFeatures implements Listener
 | 
				
			|||||||
		Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("Herochat");
 | 
							Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("Herochat");
 | 
				
			||||||
		if (plug == null) return;
 | 
							if (plug == null) return;
 | 
				
			||||||
		if (!plug.getClass().getName().equals("com.dthielke.herochat.Herochat")) return;
 | 
							if (!plug.getClass().getName().equals("com.dthielke.herochat.Herochat")) return;
 | 
				
			||||||
		Bukkit.getPluginManager().registerEvents(new HerochatListener(P.p), P.p);
 | 
							Bukkit.getPluginManager().registerEvents(new HerochatListener(Factions.p), Factions.p);
 | 
				
			||||||
		P.p.log("Integration with Herochat successful");
 | 
							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.Conf;
 | 
				
			||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.listeners.FactionsChatListener;
 | 
					import com.massivecraft.factions.listeners.FactionsChatListener;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class HerochatListener implements Listener
 | 
					public class HerochatListener implements Listener
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	P p;
 | 
						Factions p;
 | 
				
			||||||
	public HerochatListener(P p)
 | 
						public HerochatListener(Factions p)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.p = p;
 | 
							this.p = p;
 | 
				
			||||||
		Herochat.getChannelManager().addChannel(new FactionChannel());
 | 
							Herochat.getChannelManager().addChannel(new FactionChannel());
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,14 +12,14 @@ import org.bukkit.event.player.PlayerRespawnEvent;
 | 
				
			|||||||
import org.bukkit.event.player.PlayerTeleportEvent;
 | 
					import org.bukkit.event.player.PlayerTeleportEvent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.integration.SpoutFeatures;
 | 
					import com.massivecraft.factions.integration.SpoutFeatures;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class FactionsAppearanceListener implements Listener
 | 
					public class FactionsAppearanceListener implements Listener
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	public P p;
 | 
						public Factions p;
 | 
				
			||||||
	public FactionsAppearanceListener(P p)
 | 
						public FactionsAppearanceListener(Factions p)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.p = p;
 | 
							this.p = p;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,15 +20,15 @@ import com.massivecraft.factions.FLocation;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.struct.FFlag;
 | 
					import com.massivecraft.factions.struct.FFlag;
 | 
				
			||||||
import com.massivecraft.factions.struct.FPerm;
 | 
					import com.massivecraft.factions.struct.FPerm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class FactionsBlockListener implements Listener
 | 
					public class FactionsBlockListener implements Listener
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	public P p;
 | 
						public Factions p;
 | 
				
			||||||
	public FactionsBlockListener(P p)
 | 
						public FactionsBlockListener(Factions p)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.p = p;
 | 
							this.p = p;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,13 +24,13 @@ import org.bukkit.plugin.RegisteredListener;
 | 
				
			|||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.struct.Rel;
 | 
					import com.massivecraft.factions.struct.Rel;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class FactionsChatListener implements Listener
 | 
					public class FactionsChatListener implements Listener
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	public P p;
 | 
						public Factions p;
 | 
				
			||||||
	public FactionsChatListener(P p)
 | 
						public FactionsChatListener(Factions p)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.p = p;
 | 
							this.p = p;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -46,7 +46,7 @@ public class FactionsChatListener implements Listener
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		catch (Exception e)
 | 
							catch (Exception e)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			P.p.log(Level.SEVERE, "A reflection trick is broken! This will lead to glitchy relation-colored-chat.");
 | 
								Factions.p.log(Level.SEVERE, "A reflection trick is broken! This will lead to glitchy relation-colored-chat.");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		parsePattern = Pattern.compile("[{\\[]factions?_([a-zA-Z_]+)[}\\]]");
 | 
							parsePattern = Pattern.compile("[{\\[]factions?_([a-zA-Z_]+)[}\\]]");
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -44,7 +44,7 @@ import com.massivecraft.factions.FLocation;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.event.PowerLossEvent;
 | 
					import com.massivecraft.factions.event.PowerLossEvent;
 | 
				
			||||||
import com.massivecraft.factions.struct.FFlag;
 | 
					import com.massivecraft.factions.struct.FFlag;
 | 
				
			||||||
import com.massivecraft.factions.struct.Rel;
 | 
					import com.massivecraft.factions.struct.Rel;
 | 
				
			||||||
@@ -53,8 +53,8 @@ import com.massivecraft.factions.util.MiscUtil;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
public class FactionsEntityListener implements Listener
 | 
					public class FactionsEntityListener implements Listener
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	public P p;
 | 
						public Factions p;
 | 
				
			||||||
	public FactionsEntityListener(P p)
 | 
						public FactionsEntityListener(Factions p)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.p = p;
 | 
							this.p = p;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@ import com.massivecraft.factions.Conf;
 | 
				
			|||||||
import com.massivecraft.factions.FLocation;
 | 
					import com.massivecraft.factions.FLocation;
 | 
				
			||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.integration.SpoutFeatures;
 | 
					import com.massivecraft.factions.integration.SpoutFeatures;
 | 
				
			||||||
import com.massivecraft.factions.struct.FFlag;
 | 
					import com.massivecraft.factions.struct.FFlag;
 | 
				
			||||||
import com.massivecraft.factions.struct.FPerm;
 | 
					import com.massivecraft.factions.struct.FPerm;
 | 
				
			||||||
@@ -40,8 +40,8 @@ import com.massivecraft.factions.util.VisualizeUtil;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
public class FactionsPlayerListener implements Listener
 | 
					public class FactionsPlayerListener implements Listener
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	public P p;
 | 
						public Factions p;
 | 
				
			||||||
	public FactionsPlayerListener(P p)
 | 
						public FactionsPlayerListener(Factions p)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.p = p;
 | 
							this.p = p;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,14 +6,14 @@ import org.bukkit.event.Listener;
 | 
				
			|||||||
import org.bukkit.event.server.PluginDisableEvent;
 | 
					import org.bukkit.event.server.PluginDisableEvent;
 | 
				
			||||||
import org.bukkit.event.server.PluginEnableEvent;
 | 
					import org.bukkit.event.server.PluginEnableEvent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.integration.SpoutFeatures;
 | 
					import com.massivecraft.factions.integration.SpoutFeatures;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class FactionsServerListener implements Listener
 | 
					public class FactionsServerListener implements Listener
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	public P p;
 | 
						public Factions p;
 | 
				
			||||||
	public FactionsServerListener(P p)
 | 
						public FactionsServerListener(Factions p)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		this.p = p;
 | 
							this.p = p;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,7 +15,7 @@ import com.massivecraft.factions.FLocation;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
import com.massivecraft.factions.Perm;
 | 
					import com.massivecraft.factions.Perm;
 | 
				
			||||||
import com.massivecraft.factions.iface.RelationParticipator;
 | 
					import com.massivecraft.factions.iface.RelationParticipator;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -170,7 +170,7 @@ public enum FPerm
 | 
				
			|||||||
			fplayer.msg(errorpattern, hostFaction.describeTo(fplayer, true), this.getDescription());
 | 
								fplayer.msg(errorpattern, hostFaction.describeTo(fplayer, true), this.getDescription());
 | 
				
			||||||
			if (Perm.ADMIN.has(fplayer.getPlayer()))
 | 
								if (Perm.ADMIN.has(fplayer.getPlayer()))
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				fplayer.msg("<i>You can bypass by using " + P.p.cmdBase.cmdBypass.getUseageTemplate(false));
 | 
									fplayer.msg("<i>You can bypass by using " + Factions.p.cmdBase.cmdBypass.getUseageTemplate(false));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		return ret;
 | 
							return ret;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@ import org.bukkit.entity.Player;
 | 
				
			|||||||
import com.massivecraft.factions.FPlayer;
 | 
					import com.massivecraft.factions.FPlayer;
 | 
				
			||||||
import com.massivecraft.factions.Faction;
 | 
					import com.massivecraft.factions.Faction;
 | 
				
			||||||
import com.massivecraft.factions.FactionColl;
 | 
					import com.massivecraft.factions.FactionColl;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.bukkit.craftbukkit.libs.com.google.gson.JsonArray;
 | 
					import org.bukkit.craftbukkit.libs.com.google.gson.JsonArray;
 | 
				
			||||||
import org.bukkit.craftbukkit.libs.com.google.gson.JsonDeserializationContext;
 | 
					import org.bukkit.craftbukkit.libs.com.google.gson.JsonDeserializationContext;
 | 
				
			||||||
@@ -262,7 +262,7 @@ public class TerritoryAccess implements JsonDeserializer<TerritoryAccess>, JsonS
 | 
				
			|||||||
		catch (Exception ex)
 | 
							catch (Exception ex)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			ex.printStackTrace();
 | 
								ex.printStackTrace();
 | 
				
			||||||
			P.p.log(Level.WARNING, "Error encountered while deserializing TerritoryAccess data.");
 | 
								Factions.p.log(Level.WARNING, "Error encountered while deserializing TerritoryAccess data.");
 | 
				
			||||||
			return null;
 | 
								return null;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -313,7 +313,7 @@ public class TerritoryAccess implements JsonDeserializer<TerritoryAccess>, JsonS
 | 
				
			|||||||
		catch (Exception ex)
 | 
							catch (Exception ex)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			ex.printStackTrace();
 | 
								ex.printStackTrace();
 | 
				
			||||||
			P.p.log(Level.WARNING, "Error encountered while serializing TerritoryAccess data.");
 | 
								Factions.p.log(Level.WARNING, "Error encountered while serializing TerritoryAccess data.");
 | 
				
			||||||
			return null;
 | 
								return null;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ package com.massivecraft.factions.util;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.FPlayers;
 | 
					import com.massivecraft.factions.FPlayers;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class AutoLeaveTask implements Runnable
 | 
					public class AutoLeaveTask implements Runnable
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@@ -19,6 +19,6 @@ public class AutoLeaveTask implements Runnable
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		// maybe setting has been changed? if so, restart task at new rate
 | 
							// maybe setting has been changed? if so, restart task at new rate
 | 
				
			||||||
		if (this.rate != Conf.autoLeaveRoutineRunsEveryXMinutes)
 | 
							if (this.rate != Conf.autoLeaveRoutineRunsEveryXMinutes)
 | 
				
			||||||
			P.p.startAutoLeaveTask(true);
 | 
								Factions.p.startAutoLeaveTask(true);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ package com.massivecraft.factions.util;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.Conf;
 | 
					import com.massivecraft.factions.Conf;
 | 
				
			||||||
import com.massivecraft.factions.FactionColl;
 | 
					import com.massivecraft.factions.FactionColl;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class EconLandRewardTask implements Runnable {
 | 
					public class EconLandRewardTask implements Runnable {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -19,7 +19,7 @@ public class EconLandRewardTask implements Runnable {
 | 
				
			|||||||
		FactionColl.i.econLandRewardRoutine();
 | 
							FactionColl.i.econLandRewardRoutine();
 | 
				
			||||||
		// maybe setting has been changed? if so, restart task at new rate
 | 
							// maybe setting has been changed? if so, restart task at new rate
 | 
				
			||||||
		if (this.rate != Conf.econLandRewardTaskRunsEveryXMinutes)
 | 
							if (this.rate != Conf.econLandRewardTaskRunsEveryXMinutes)
 | 
				
			||||||
			P.p.startEconLandRewardTask(true);
 | 
								Factions.p.startEconLandRewardTask(true);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@ import org.bukkit.Location;
 | 
				
			|||||||
import org.bukkit.World;
 | 
					import org.bukkit.World;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.massivecraft.factions.FLocation;
 | 
					import com.massivecraft.factions.FLocation;
 | 
				
			||||||
import com.massivecraft.factions.P;
 | 
					import com.massivecraft.factions.Factions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
@@ -48,7 +48,7 @@ public abstract class SpiralTask implements Runnable
 | 
				
			|||||||
		this.world = Bukkit.getWorld(fLocation.getWorldName());
 | 
							this.world = Bukkit.getWorld(fLocation.getWorldName());
 | 
				
			||||||
		if (this.world == null)
 | 
							if (this.world == null)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			P.p.log(Level.WARNING, "[SpiralTask] A valid world must be specified!");
 | 
								Factions.p.log(Level.WARNING, "[SpiralTask] A valid world must be specified!");
 | 
				
			||||||
			this.stop();
 | 
								this.stop();
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
@@ -59,7 +59,7 @@ public abstract class SpiralTask implements Runnable
 | 
				
			|||||||
		this.readyToGo = true;
 | 
							this.readyToGo = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// get this party started
 | 
							// get this party started
 | 
				
			||||||
		this.setTaskID(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(P.p, this, 2, 2));
 | 
							this.setTaskID(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(Factions.p, this, 2, 2));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user