Better WorldObject toString method usage.
This commit is contained in:
		| @@ -1247,7 +1247,7 @@ public class CastleChamberlain extends AbstractNpcAI | ||||
| 				} | ||||
| 				default: | ||||
| 				{ | ||||
| 					LOGGER.warning(getClass().getSimpleName() + ": Player " + player.getName() + " (" + player.getObjectId() + ") send unknown request id " + evt.getRequest() + "!"); | ||||
| 					LOGGER.warning(getClass().getSimpleName() + ": " + player + " send unknown request id " + evt.getRequest() + "!"); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|   | ||||
| @@ -751,12 +751,12 @@ public class ClassMaster extends AbstractNpcAI implements IXmlReader | ||||
| 		 | ||||
| 		if (newClass == null) | ||||
| 		{ | ||||
| 			LOGGER.warning(getClass().getSimpleName() + ": No new classId found for player " + player); | ||||
| 			LOGGER.warning(getClass().getSimpleName() + ": No new classId found for " + player); | ||||
| 			return false; | ||||
| 		} | ||||
| 		else if (newClass == player.getClassId()) | ||||
| 		{ | ||||
| 			LOGGER.warning(getClass().getSimpleName() + ": New classId found for player " + player + " is exactly the same as the one he currently is!"); | ||||
| 			LOGGER.warning(getClass().getSimpleName() + ": New classId found for " + player + " is exactly the same as the one he currently is!"); | ||||
| 			return false; | ||||
| 		} | ||||
| 		else if (checkIfClassChangeHasOptions(player)) | ||||
|   | ||||
| @@ -69,13 +69,13 @@ public class Link implements IBypassHandler | ||||
| 		final String htmlPath = command.substring(4).trim(); | ||||
| 		if (htmlPath.isEmpty()) | ||||
| 		{ | ||||
| 			LOGGER.warning("Player " + player.getName() + " sent empty link html!"); | ||||
| 			LOGGER.warning(player + " sent empty link html!"); | ||||
| 			return false; | ||||
| 		} | ||||
| 		 | ||||
| 		if (htmlPath.contains("..")) | ||||
| 		{ | ||||
| 			LOGGER.warning("Player " + player.getName() + " sent invalid link html: " + htmlPath); | ||||
| 			LOGGER.warning(player + " sent invalid link html: " + htmlPath); | ||||
| 			return false; | ||||
| 		} | ||||
| 		 | ||||
|   | ||||
| @@ -77,7 +77,7 @@ public class ClanBoard implements IWriteBoardHandler | ||||
| 				catch (Exception e) | ||||
| 				{ | ||||
| 					clanList(player, 1); | ||||
| 					LOG.warning(ClanBoard.class.getSimpleName() + ": Player " + player + " send invalid clan list bypass " + command + "!"); | ||||
| 					LOG.warning(ClanBoard.class.getSimpleName() + ": " + player + " send invalid clan list bypass " + command + "!"); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| @@ -97,7 +97,7 @@ public class ClanBoard implements IWriteBoardHandler | ||||
| 				catch (Exception e) | ||||
| 				{ | ||||
| 					clanHome(player); | ||||
| 					LOG.warning(ClanBoard.class.getSimpleName() + ": Player " + player + " send invalid clan home bypass " + command + "!"); | ||||
| 					LOG.warning(ClanBoard.class.getSimpleName() + ": " + player + " send invalid clan home bypass " + command + "!"); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|   | ||||
| @@ -83,7 +83,7 @@ public class FavoriteBoard implements IParseBoardHandler | ||||
| 			} | ||||
| 			catch (Exception e) | ||||
| 			{ | ||||
| 				LOG.warning(FavoriteBoard.class.getSimpleName() + ": Couldn't load favorite links for player " + player.getName()); | ||||
| 				LOG.warning(FavoriteBoard.class.getSimpleName() + ": Couldn't load favorite links for " + player); | ||||
| 			} | ||||
| 		} | ||||
| 		else if (command.startsWith("bbs_add_fav")) | ||||
| @@ -110,7 +110,7 @@ public class FavoriteBoard implements IParseBoardHandler | ||||
| 				} | ||||
| 				catch (Exception e) | ||||
| 				{ | ||||
| 					LOG.warning(FavoriteBoard.class.getSimpleName() + ": Couldn't add favorite link " + bypass + " for player " + player.getName()); | ||||
| 					LOG.warning(FavoriteBoard.class.getSimpleName() + ": Couldn't add favorite link " + bypass + " for " + player); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| @@ -134,7 +134,7 @@ public class FavoriteBoard implements IParseBoardHandler | ||||
| 			} | ||||
| 			catch (Exception e) | ||||
| 			{ | ||||
| 				LOG.warning(FavoriteBoard.class.getSimpleName() + ": Couldn't delete favorite link ID " + favId + " for player " + player.getName()); | ||||
| 				LOG.warning(FavoriteBoard.class.getSimpleName() + ": Couldn't delete favorite link ID " + favId + " for " + player); | ||||
| 			} | ||||
| 		} | ||||
| 		return true; | ||||
|   | ||||
| @@ -337,7 +337,7 @@ public class HomeBoard implements IParseBoardHandler | ||||
| 		} | ||||
| 		catch (Exception e) | ||||
| 		{ | ||||
| 			LOG.warning(FavoriteBoard.class.getSimpleName() + ": Coudn't load favorites count for player " + player.getName()); | ||||
| 			LOG.warning(FavoriteBoard.class.getSimpleName() + ": Coudn't load favorites count for " + player); | ||||
| 		} | ||||
| 		return count; | ||||
| 	} | ||||
|   | ||||
| @@ -80,7 +80,7 @@ public class RegionBoard implements IWriteBoardHandler | ||||
| 			final String id = command.replace("_bbsloc;", ""); | ||||
| 			if (!Util.isDigit(id)) | ||||
| 			{ | ||||
| 				LOG.warning(RegionBoard.class.getSimpleName() + ": Player " + player + " sent and invalid region bypass " + command + "!"); | ||||
| 				LOG.warning(RegionBoard.class.getSimpleName() + ": " + player + " sent and invalid region bypass " + command + "!"); | ||||
| 				return false; | ||||
| 			} | ||||
| 			 | ||||
|   | ||||
| @@ -124,7 +124,7 @@ public abstract class AbstractInstance extends AbstractNpcAI | ||||
| 			final InstanceTemplate template = manager.getInstanceTemplate(templateId); | ||||
| 			if (template == null) | ||||
| 			{ | ||||
| 				LOGGER.warning("Player " + player.getName() + " (" + player.getObjectId() + ") wants to create instance with unknown template id " + templateId + "!"); | ||||
| 				LOGGER.warning(player + " wants to create instance with unknown template id " + templateId + "!"); | ||||
| 				return; | ||||
| 			} | ||||
| 			 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment