mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-29 15:47:40 +02:00
added ability for NPCs to chat to one player only
This commit is contained in:
parent
bf73bcc594
commit
d6a721ec66
Binary file not shown.
@ -33,6 +33,11 @@ public abstract class CitizensNPC extends AbstractNPC {
|
||||
@Override
|
||||
public void chat(String message) {
|
||||
for (Player player : Bukkit.getOnlinePlayers())
|
||||
chat(player, message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void chat(Player player, String message) {
|
||||
Messaging.sendWithNPC(player, Setting.CHAT_PREFIX.asString() + message, this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user