This commit is contained in:
2022-02-25 02:08:46 -06:00
parent f13bd8a5d5
commit 27daa3a858
6 changed files with 2 additions and 15 deletions

View File

@ -8,8 +8,6 @@ import dev.plex.listener.impl.ChatListener;
import dev.plex.rank.enums.Rank;
import net.kyori.adventure.text.Component;
import org.apache.commons.lang.StringUtils;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;

View File

@ -7,6 +7,7 @@ import dev.plex.command.annotation.CommandPermissions;
import dev.plex.command.source.RequiredCommandSource;
import dev.plex.player.PlexPlayer;
import dev.plex.rank.enums.Rank;
import dev.plex.util.PlexUtils;
import net.kyori.adventure.text.Component;
import org.apache.commons.lang.StringUtils;
import org.bukkit.ChatColor;
@ -50,7 +51,7 @@ public class TagCMD extends PlexCommand
return messageComponent("maximumPrefixLength", plugin.config.getInt("chat.max-tag-length", 16));
}
player.setPrefix(prefix);
return messageComponent("prefixSetTo", prefix);
return messageComponent("prefixSetTo", PlexUtils.colorize(prefix));
}
if (args[0].equalsIgnoreCase("clear"))