mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-29 05:26:17 +01:00
Make legacz placeholders optional
This commit is contained in:
parent
3fc3c74d30
commit
f100e3cd20
@ -4,12 +4,17 @@ public class MiniMessagePlaceholder {
|
||||
|
||||
public static String PLACEHOLDER_PREFIX = "%";
|
||||
public static String PLACEHOLDER_SUFFIX = "%";
|
||||
public static boolean useLegacyPlaceholders = false;
|
||||
|
||||
private final String placeholder;
|
||||
private final String value;
|
||||
|
||||
public MiniMessagePlaceholder(String placeholder, String value) {
|
||||
this.placeholder = PLACEHOLDER_PREFIX + placeholder + PLACEHOLDER_SUFFIX;
|
||||
if (useLegacyPlaceholders) {
|
||||
this.placeholder = PLACEHOLDER_PREFIX + placeholder + PLACEHOLDER_SUFFIX;
|
||||
} else {
|
||||
this.placeholder = placeholder;
|
||||
}
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user