Fix mail output message not showing recipient name.
This commit is contained in:
@@ -210,7 +210,7 @@ public class ChatHandler {
|
|||||||
// TODO load from config
|
// TODO load from config
|
||||||
String finalSenderName = senderName;
|
String finalSenderName = senderName;
|
||||||
optionalPlayer.ifPresent(player -> player.sendMessage(Utility.parseMiniMessage("<yellow>New mail from " + finalSenderName)));
|
optionalPlayer.ifPresent(player -> player.sendMessage(Utility.parseMiniMessage("<yellow>New mail from " + finalSenderName)));
|
||||||
commandSource.sendMessage(Utility.parseMiniMessage("<yellow>Sent mail to " + senderName + "!"));
|
commandSource.sendMessage(Utility.parseMiniMessage("<yellow>Sent mail to " + recipient + "!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void readMail(CommandSource commandSource, String targetPlayer, String senderPlayer) {
|
public void readMail(CommandSource commandSource, String targetPlayer, String senderPlayer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user