PowerRegenEvent and optimization

- Add power regeneration event
- Change getNone(), a deprecated method, to getWilderness()
- Optimization
This commit is contained in:
GenialJerome
2018-11-20 20:51:07 +01:00
parent ff6a3b2b1a
commit 5f8ea0bd19
29 changed files with 281 additions and 401 deletions

View File

@@ -92,23 +92,15 @@ public enum Role implements Permissable {
}
public String getPrefix() {
if (this == Role.LEADER) {
return Conf.prefixLeader;
}
if (this == Role.COLEADER) {
return Conf.prefixCoLeader;
}
if (this == Role.MODERATOR) {
return Conf.prefixMod;
}
if (this == Role.NORMAL) {
return Conf.prefixNormal;
}
if (this == Role.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 "";
}