mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01: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,7 +33,12 @@ public abstract class CitizensNPC extends AbstractNPC {
|
||||
@Override
|
||||
public void chat(String message) {
|
||||
for (Player player : Bukkit.getOnlinePlayers())
|
||||
Messaging.sendWithNPC(player, Setting.CHAT_PREFIX.asString() + message, this);
|
||||
chat(player, message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void chat(Player player, String message) {
|
||||
Messaging.sendWithNPC(player, Setting.CHAT_PREFIX.asString() + message, this);
|
||||
}
|
||||
|
||||
protected abstract EntityLiving createHandle(Location loc);
|
||||
|
Loading…
Reference in New Issue
Block a user