File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/java/me/zetastormy/akropolis Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 2929public 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}
You can’t perform that action at this time.
0 commit comments