Remove deprecated isNone usages in favor of isWilderness
This commit is contained in:
@@ -58,7 +58,7 @@ public class CmdKick extends FCommand {
|
||||
|
||||
Faction toKickFaction = toKick.getFaction();
|
||||
|
||||
if (toKickFaction.isNone()) {
|
||||
if (toKickFaction.isWilderness()) {
|
||||
sender.sendMessage(TL.COMMAND_KICK_NONE.toString());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ public class CmdList extends FCommand {
|
||||
lines.add(p.txt.parse(header));
|
||||
|
||||
for (Faction faction : factionList.subList(start, end)) {
|
||||
if (faction.isNone()) {
|
||||
if (faction.isWilderness()) {
|
||||
lines.add(p.txt.parse(TagUtil.parsePlain(faction, p.getConfig().getString("list.factionless", defaults[1]))));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public class CmdStuck extends FCommand {
|
||||
public boolean work() {
|
||||
FLocation chunk = currentFLocation();
|
||||
Faction faction = board.getFactionAt(chunk);
|
||||
if (faction.isNone()) {
|
||||
if (faction.isWilderness()) {
|
||||
int cx = FLocation.chunkToBlock((int) chunk.getX());
|
||||
int cz = FLocation.chunkToBlock((int) chunk.getZ());
|
||||
int y = world.getHighestBlockYAt(cx, cz);
|
||||
|
||||
Reference in New Issue
Block a user