added ability for NPCs to chat to one player only

This commit is contained in:
aPunch 2012-02-18 16:29:29 -06:00
parent 8340fa9c76
commit a7fa8b950d
2 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -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);