more formatting

This commit is contained in:
aPunch 2012-01-22 01:58:02 -06:00
parent 2a99446bd5
commit 4341327c3c
2 changed files with 3 additions and 4 deletions

View File

@ -101,9 +101,9 @@ public class Citizens extends JavaPlugin {
NPC npc = npcManager.createNPC(key.getString("name"), character);
// Load the character if it exists, otherwise remove the character
if (character != null) {
if (character != null)
character.load(key.getRelative(character.getName()));
} else {
else {
if (key.keyExists("character")) {
Messaging.debug("Character '" + key.getString("character")
+ "' does not exist. Removing character from the NPC with ID '" + npc.getId() + "'.");

View File

@ -39,9 +39,8 @@ public class EventListen implements Listener {
EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event;
if (e.getDamager() instanceof Player) {
NPC npc = manager.getNPC(event.getEntity());
if (npc.getCharacter() != null) {
if (npc.getCharacter() != null)
npc.getCharacter().onLeftClick(npc, (Player) e.getDamager());
}
}
}
}