mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-02 23:23:26 +01:00
Allow warzone and safezone to be colored in f map
This commit is contained in:
parent
3ff319dc27
commit
a45833944b
@ -21,6 +21,8 @@ public class Conf {
|
||||
public static ChatColor colorEnemy = ChatColor.RED;
|
||||
|
||||
public static ChatColor colorPeaceful = ChatColor.GOLD;
|
||||
public static ChatColor colorWilderness = ChatColor.GRAY;
|
||||
public static ChatColor colorSafezone = ChatColor.GOLD;
|
||||
public static ChatColor colorWar = ChatColor.DARK_RED;
|
||||
|
||||
// Power
|
||||
|
@ -284,7 +284,7 @@ public abstract class MemoryBoard extends Board {
|
||||
Faction factionHere = getFactionAt(flocationHere);
|
||||
Relation relation = fplayer.getRelationTo(factionHere);
|
||||
if (factionHere.isWilderness()) {
|
||||
row.then("-").color(ChatColor.GRAY);
|
||||
row.then("-").color(Conf.colorWilderness);
|
||||
// Check for claimat permission and if so, let them claim at ;D
|
||||
// TODO: TEMP DISABLED UNTIL FIXED PROPERLY :(
|
||||
if (false) { //fplayer.getPlayer().hasPermission(Permission.CLAIMAT.node)) {
|
||||
@ -292,9 +292,9 @@ public abstract class MemoryBoard extends Board {
|
||||
.command(String.format("/f claimat %s %d %d", flocation.getWorldName(), dx, dz));
|
||||
}
|
||||
} else if (factionHere.isSafeZone()) {
|
||||
row.then("+").color(Conf.colorPeaceful);
|
||||
row.then("+").color(Conf.colorSafezone);
|
||||
} else if (factionHere.isWarZone()) {
|
||||
row.then("+").color(ChatColor.DARK_RED);
|
||||
row.then("+").color(Conf.colorWar);
|
||||
} else if (factionHere == faction || factionHere == factionLoc || relation.isAtLeast(Relation.ALLY) ||
|
||||
(Conf.showNeutralFactionsOnMap && relation.equals(Relation.NEUTRAL)) ||
|
||||
(Conf.showEnemyFactionsOnMap && relation.equals(Relation.ENEMY))) {
|
||||
|
Loading…
Reference in New Issue
Block a user