Fixed internal name problems with leader

This commit is contained in:
ProSavage
2018-11-06 23:16:11 -06:00
parent 9d21df9c63
commit cd09e77b42
4 changed files with 5 additions and 4 deletions

View File

@@ -55,6 +55,7 @@ public enum Role implements Permissable {
public static Role fromString(String check) {
switch (check.toLowerCase()) {
case "leader":
case "admin":
return LEADER;
case "coleader":
@@ -92,7 +93,7 @@ public enum Role implements Permissable {
public String getPrefix() {
if (this == Role.LEADER) {
return Conf.prefixAdmin;
return Conf.prefixLeader;
}
if (this == Role.COLEADER) {
return Conf.prefixCoLeader;