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:
parent
bb163443e4
commit
67fdfa05b4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user