Code Cleanup/Added Configurable option to deny and remove homes in ANY factions land.
More Soon..
This commit is contained in:
@@ -95,15 +95,19 @@ public enum Relation implements Permissable {
|
||||
}
|
||||
|
||||
public ChatColor getColor() {
|
||||
|
||||
switch (this)
|
||||
{
|
||||
case MEMBER: return Conf.colorMember;
|
||||
case ALLY: return Conf.colorAlly;
|
||||
case NEUTRAL: return Conf.colorNeutral;
|
||||
case TRUCE: return Conf.colorTruce;
|
||||
default: return Conf.colorEnemy;
|
||||
}
|
||||
|
||||
switch (this) {
|
||||
case MEMBER:
|
||||
return Conf.colorMember;
|
||||
case ALLY:
|
||||
return Conf.colorAlly;
|
||||
case NEUTRAL:
|
||||
return Conf.colorNeutral;
|
||||
case TRUCE:
|
||||
return Conf.colorTruce;
|
||||
default:
|
||||
return Conf.colorEnemy;
|
||||
}
|
||||
}
|
||||
|
||||
// return appropriate Conf setting for DenyBuild based on this relation and their online status
|
||||
|
||||
@@ -92,15 +92,19 @@ public enum Role implements Permissable {
|
||||
}
|
||||
|
||||
public String getPrefix() {
|
||||
|
||||
switch (this)
|
||||
{
|
||||
case LEADER: return Conf.prefixLeader;
|
||||
case COLEADER: return Conf.prefixCoLeader;
|
||||
case MODERATOR: return Conf.prefixMod;
|
||||
case NORMAL: return Conf.prefixNormal;
|
||||
case RECRUIT: return Conf.prefixRecruit;
|
||||
}
|
||||
|
||||
switch (this) {
|
||||
case LEADER:
|
||||
return Conf.prefixLeader;
|
||||
case COLEADER:
|
||||
return Conf.prefixCoLeader;
|
||||
case MODERATOR:
|
||||
return Conf.prefixMod;
|
||||
case NORMAL:
|
||||
return Conf.prefixNormal;
|
||||
case RECRUIT:
|
||||
return Conf.prefixRecruit;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user