From 67fdfa05b4d856f8029d7ba0990617e63d3cf5a3 Mon Sep 17 00:00:00 2001 From: Mykyta Komarnytskyy Date: Fri, 11 Dec 2020 11:40:26 -0800 Subject: [PATCH] Replace in the correct message --- src/main/java/xyz/nkomarn/harbor/util/Messages.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/nkomarn/harbor/util/Messages.java b/src/main/java/xyz/nkomarn/harbor/util/Messages.java index 75fb7f9..dd479be 100644 --- a/src/main/java/xyz/nkomarn/harbor/util/Messages.java +++ b/src/main/java/xyz/nkomarn/harbor/util/Messages.java @@ -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);