PowerRegenEvent and optimization
- Add power regeneration event - Change getNone(), a deprecated method, to getWilderness() - Optimization
This commit is contained in:
@@ -95,17 +95,15 @@ public enum Relation implements Permissable {
|
||||
}
|
||||
|
||||
public ChatColor getColor() {
|
||||
if (this == MEMBER) {
|
||||
return Conf.colorMember;
|
||||
} else if (this == ALLY) {
|
||||
return Conf.colorAlly;
|
||||
} else if (this == NEUTRAL) {
|
||||
return Conf.colorNeutral;
|
||||
} else if (this == TRUCE) {
|
||||
return Conf.colorTruce;
|
||||
} else {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user