Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit cd09e77

Browse files
committed
Fixed internal name problems with leader
1 parent 9d21df9 commit cd09e77

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/main/java/com/massivecraft/factions/Conf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class Conf {
4343
public static double powerOfflineLossPerDay = 0.0; // players will lose this much power per day offline
4444
public static double powerOfflineLossLimit = 0.0; // players will no longer lose power from being offline once their power drops to this amount or less
4545
public static double powerFactionMax = 0.0; // if greater than 0, the cap on how much power a faction can have (additional power from players beyond that will act as a "buffer" of sorts)
46-
public static String prefixAdmin = "***";
46+
public static String prefixLeader = "***";
4747
public static String prefixCoLeader = "**";
4848
public static String prefixMod = "*";
4949
public static String prefixRecruit = "-";

src/main/java/com/massivecraft/factions/struct/Role.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public static Role getByValue(int value) {
5555

5656
public static Role fromString(String check) {
5757
switch (check.toLowerCase()) {
58+
case "leader":
5859
case "admin":
5960
return LEADER;
6061
case "coleader":
@@ -92,7 +93,7 @@ public TL getTranslation() {
9293

9394
public String getPrefix() {
9495
if (this == Role.LEADER) {
95-
return Conf.prefixAdmin;
96+
return Conf.prefixLeader;
9697
}
9798
if (this == Role.COLEADER) {
9899
return Conf.prefixCoLeader;

src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ public String getRolePrefix() {
11971197
return Conf.prefixCoLeader;
11981198
}
11991199
if (getRole() == Role.LEADER) {
1200-
return Conf.prefixAdmin;
1200+
return Conf.prefixLeader;
12011201
}
12021202
return null;
12031203
}

src/main/java/com/massivecraft/factions/zcore/util/TL.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ public enum TL {
880880
/**
881881
* Roles
882882
*/
883-
ROLE_LEADER("admin"),
883+
ROLE_LEADER("leader"),
884884
ROLE_COLEADER("coleader"),
885885
ROLE_MODERATOR("moderator"),
886886
ROLE_NORMAL("normal member"),

0 commit comments

Comments
 (0)