1
0
mirror of https://github.com/nkomarn/harbor.git synced 2025-01-05 07:07:34 +01:00

Replace in the correct message

This commit is contained in:
Mykyta Komarnytskyy 2020-12-11 11:40:26 -08:00
parent bb163443e4
commit 67fdfa05b4

View File

@ -146,8 +146,8 @@ public class Messages implements Listener {
@NotNull
public String prepareMessage(@NotNull Player player, @NotNull String message) {
String output = ChatColor.translateAlternateColorCodes('&', message
.replace("[player]", player.getName()
.replace("[displayname]", player.getDisplayName())));
.replace("[player]", player.getName())
.replace("[displayname]", player.getDisplayName()));
if (papiPresent) {
output = PlaceholderAPI.setPlaceholders(player, output);