mirror of
https://github.com/CarmJos/UserPrefix.git
synced 2026-06-05 00:35:02 +08:00
feat: 添加 description 变量
This commit is contained in:
@@ -25,6 +25,7 @@ public class UserPrefixExpansion extends EasyPlaceholder {
|
||||
handle("identifier", handlePrefix(PrefixConfig::getIdentifier), "id");
|
||||
handle("prefix", handlePrefix(PrefixConfig::getContent));
|
||||
handle("name", handlePrefix(PrefixConfig::getName));
|
||||
handle("description", handlePrefix(p -> String.join("\n", p.getDescription())));
|
||||
handle("weight", handlePrefix(PrefixConfig::getWeight));
|
||||
handle("amount", handlePlayer(
|
||||
(player) -> UserPrefixAPI.getUserManager().getUsablePrefixes(player).size() + 1)
|
||||
|
||||
Reference in New Issue
Block a user