Skip to content

Commit

Permalink
msg command 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rownox committed Dec 15, 2023
1 parent 817f7da commit 216eed8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import lombok.NonNull;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import world.ntdi.nrcore.NRCore;
Expand Down Expand Up @@ -57,6 +58,10 @@ public static void log(Player sender, Player receiver, String[] args, int start)
lastMessage.put(receiver.getUniqueId(), sender.getUniqueId());
sender.sendMessage(formatTo);
receiver.sendMessage(formatFrom);

if (!MessageCommand.lastMessage.containsKey(receiver.getUniqueId())) {
receiver.sendMessage(ChatColor.YELLOW + "(!) To respond to this message, type /re <message>");
}
}

@Override
Expand Down

0 comments on commit 216eed8

Please sign in to comment.