diff --git a/README.md b/README.md index 2e5eeb9..8498214 100644 --- a/README.md +++ b/README.md @@ -3,16 +3,20 @@ LuckPerms Expansion for MiniPlaceholders ## Placeholders -`` +``* -`` +``* `` (true/false) `` (true/false/undefined) -`` +``* `` (true/false) -`` +``* + +*By default these resolve to an isolated component that doesn't leak its styles to the rest of the string. +If you want them inserted as strings prior to parsing so they affect the output add the `s` or `string` option to the end. Like this: `` + diff --git a/src/main/java/io/github/miniplaceholders/expansion/luckperms/LuckPermsExpansion.java b/src/main/java/io/github/miniplaceholders/expansion/luckperms/LuckPermsExpansion.java index 87a4dff..c04a227 100644 --- a/src/main/java/io/github/miniplaceholders/expansion/luckperms/LuckPermsExpansion.java +++ b/src/main/java/io/github/miniplaceholders/expansion/luckperms/LuckPermsExpansion.java @@ -175,7 +175,8 @@ static Expansion luckPerms() { } private static boolean parseString(ArgumentQueue queue) { - return queue.hasNext() && queue.pop().lowerValue().equals("string"); + String arg = queue.hasNext() ? queue.pop().lowerValue() : ""; + return arg.equals("string") || arg.equals("s"); } private static User user(final Audience audience, final LuckPerms luckPerms) {