Parse components in nicktry
This commit is contained in:
parent
ef831c48b3
commit
76f713409b
|
|
@ -93,9 +93,9 @@ public class Nicknames implements CommandExecutor, TabCompleter {
|
||||||
if (api != null) {
|
if (api != null) {
|
||||||
if (NickUtilities.validNick(player, player, args[1])) {
|
if (NickUtilities.validNick(player, player, args[1])) {
|
||||||
sender.sendMessage(Utility.parseMiniMessage(Config.NICK_TRYOUT,
|
sender.sendMessage(Utility.parseMiniMessage(Config.NICK_TRYOUT,
|
||||||
Placeholder.unparsed("prefix", api.getUserManager().getUser(player.getUniqueId())
|
Placeholder.component("prefix", Utility.applyColor(api.getUserManager().getUser(player.getUniqueId())
|
||||||
.getCachedData().getMetaData().getPrefix()), // TODO pull this from chatuser?
|
.getCachedData().getMetaData().getPrefix())), // TODO pull this from chatuser?
|
||||||
Placeholder.unparsed("nick", args[1])));
|
Placeholder.component("nick", Utility.applyColor(args[1]))));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(Utility.parseMiniMessage(Config.NICK_NO_LUCKPERMS));
|
sender.sendMessage(Utility.parseMiniMessage(Config.NICK_NO_LUCKPERMS));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user