Skip to content

Commit 8797fdd

Browse files
committed
align TextUtil
1 parent 974574e commit 8797fdd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/me/zetastormy/akropolis/hook/HooksManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public HooksManager(AkropolisPlugin plugin) {
5454
if (Bukkit.getPluginManager().isPluginEnabled("MiniPlaceholders")) {
5555
hooks.put("MINIPLACEHOLDERS", null);
5656
PlaceholderUtil.setMPState(true);
57-
TextUtil.setMPSTATE(true);
57+
TextUtil.setMPState(true);
5858
plugin.getLogger().info("Hooked into MiniPlaceholders");
5959
}
6060

src/main/java/me/zetastormy/akropolis/util/TextUtil.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@
2929
public class TextUtil {
3030
private static final MiniMessage MINI_MESSAGE = MiniMessage.miniMessage();
3131

32-
private static boolean MPSTATE = false;
32+
private static boolean miniplaceholders = false;
3333

3434
private TextUtil() {
3535
throw new UnsupportedOperationException();
3636
}
3737

3838
public static Component parse(String message) {
39-
if (MPSTATE)
39+
if (miniplaceholders)
4040
return MINI_MESSAGE.deserialize(message, MiniPlaceholders.getGlobalPlaceholders());
4141
else
4242
return MINI_MESSAGE.deserialize(message);
4343
}
4444

4545
public static Component parse(String message, TagResolver resolver) {
46-
if (MPSTATE)
46+
if (miniplaceholders)
4747
return MINI_MESSAGE.deserialize(message, resolver, MiniPlaceholders.getGlobalPlaceholders());
4848
else
4949
return MINI_MESSAGE.deserialize(message, resolver);
@@ -94,7 +94,7 @@ public static Color getColor(String s) {
9494
};
9595
}
9696

97-
public static void setMPSTATE(boolean MPSTATE) {
98-
TextUtil.MPSTATE = MPSTATE;
97+
public static void setMPState(boolean miniplaceholders) {
98+
TextUtil.miniplaceholders = miniplaceholders;
9999
}
100100
}

0 commit comments

Comments
 (0)