Deprecate Factions#getNone in favor of Factions#getWilderness
This commit is contained in:
parent
03cc7f7394
commit
786f2d655f
@ -26,8 +26,11 @@ public abstract class Factions {
|
||||
|
||||
public abstract ArrayList<Faction> getAllFactions();
|
||||
|
||||
@Deprecated
|
||||
public abstract Faction getNone();
|
||||
|
||||
public abstract Faction getWilderness();
|
||||
|
||||
public abstract Faction getSafeZone();
|
||||
|
||||
public abstract Faction getWarZone();
|
||||
|
@ -37,7 +37,7 @@ public class CmdTop extends FCommand {
|
||||
// Can sort by: money, members, online, allies, enemies, power, land.
|
||||
// Get all Factions and remove non player ones.
|
||||
ArrayList<Faction> factionList = Factions.getInstance().getAllFactions();
|
||||
factionList.remove(Factions.getInstance().getNone());
|
||||
factionList.remove(Factions.getInstance().getWilderness());
|
||||
factionList.remove(Factions.getInstance().getSafeZone());
|
||||
factionList.remove(Factions.getInstance().getWarZone());
|
||||
|
||||
|
@ -157,6 +157,11 @@ public abstract class MemoryFactions extends Factions {
|
||||
return factions.get("0");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Faction getWilderness() {
|
||||
return factions.get("0");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Faction getSafeZone() {
|
||||
return factions.get("-1");
|
||||
|
Loading…
Reference in New Issue
Block a user