- Create tag command

- Fix bug fixes
This commit is contained in:
Taah
2022-02-21 22:55:59 -08:00
parent ab0666ebeb
commit 355a930c89
8 changed files with 111 additions and 11 deletions

View File

@ -41,7 +41,7 @@ public class ChatListener extends PlexListener
{
if (hasPrefix)
{
return LegacyComponentSerializer.legacyAmpersand().deserialize(prefix)
return Component.empty().append(LegacyComponentSerializer.legacyAmpersand().deserialize(prefix))
.append(Component.space())
.append(sourceDisplayName)
.append(Component.space())

View File

@ -36,6 +36,7 @@ public class ServerListener extends PlexListener
List<String> samples = plugin.config.getStringList("server.sample");
if (!samples.isEmpty())
{
event.getPlayerSample().clear();
event.getPlayerSample().addAll(samples.stream().map(string -> string.replace("&", "§")).map(Bukkit::createProfile).collect(Collectors.toList()));
}
}