Modified outputs of services to conform to general output standard

This commit is contained in:
Obique
2015-01-22 19:41:16 -06:00
committed by Obique
parent 9fafb74abd
commit f40a690a80
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -300,6 +300,7 @@ public class ObjectManager extends Manager {
creature.createObject(player);
creature.clearAware();
updateAwarenessForObject(creature);
System.out.println("[" + player.getUsername() + "] " + player.getCharacterName() + " is zoning in");
new PlayerEventIntent(player, galaxy, PlayerEvent.PE_ZONE_IN).broadcast();
}
@@ -308,8 +309,8 @@ public class ObjectManager extends Manager {
return;
SWGObject creature = objects.get(characterId);
if (creature == null) {
System.err.println("ObjectManager: Failed to start zone - CreatureObject could not be fetched from database");
throw new NullPointerException("CreatureObject for ID: " + characterId + " cannot be null!");
System.err.println("ObjectManager: Failed to start zone - CreatureObject could not be fetched from database [Character: " + characterId + " User: " + player.getUsername() + "]");
return;
}
player.setCreatureObject(creature);
creature.setOwner(player);