Better WorldObject toString method usage.
This commit is contained in:
@@ -364,7 +364,7 @@ public class TalentShow extends AbstractNpcAI
|
||||
{
|
||||
if ((event == null) || event.isEmpty())
|
||||
{
|
||||
LOGGER.warning("MC_Show: Null/Empty event for npc " + npc + " and player " + player + "!");
|
||||
LOGGER.warning("MC_Show: Null/Empty event for " + npc + " and " + player + "!");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@@ -228,7 +228,7 @@ public class AvantGarde extends AbstractNpcAI
|
||||
}
|
||||
else
|
||||
{
|
||||
LOGGER.warning("Invalid Sub-Class Skill Id: " + skillIdVar + " for player " + player.getName() + "!");
|
||||
LOGGER.warning("Invalid Sub-Class Skill Id: " + skillIdVar + " for " + player + "!");
|
||||
}
|
||||
}
|
||||
else if (!qvar.isEmpty() && !qvar.equals("0"))
|
||||
@@ -258,7 +258,7 @@ public class AvantGarde extends AbstractNpcAI
|
||||
}
|
||||
else
|
||||
{
|
||||
LOGGER.warning("Invalid item object Id: " + qvar + " for player " + player.getName() + "!");
|
||||
LOGGER.warning("Invalid item object Id: " + qvar + " for " + player + "!");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -275,7 +275,7 @@ public class AvantGarde extends AbstractNpcAI
|
||||
final Item item = player.getInventory().getItemByItemId(itemId);
|
||||
if (item != null)
|
||||
{
|
||||
LOGGER.warning(getClass().getName() + ": player " + player + " had 'extra' certification skill books while cancelling sub-class certifications!");
|
||||
LOGGER.warning(getClass().getName() + ": " + player + " had 'extra' certification skill books while cancelling sub-class certifications!");
|
||||
player.destroyItem("CancelCertificationExtraBooks", item, npc, false);
|
||||
}
|
||||
}
|
||||
|
@@ -1439,7 +1439,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() + "!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -163,7 +163,7 @@ public class ManorManager 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() + "!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -111,7 +111,7 @@ public class SubClassSkills extends AbstractNpcAI
|
||||
{
|
||||
for (Skill s : certSkills)
|
||||
{
|
||||
Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " has cert skill on subclass :" + s.getName() + "(" + s.getId() + "/" + s.getLevel() + "), class:" + ClassListData.getInstance().getClass(player.getClassId()).getClassName(), IllegalActionPunishmentType.NONE);
|
||||
Util.handleIllegalPlayerAction(player, player + " has cert skill on subclass :" + s.getName() + "(" + s.getId() + "/" + s.getLevel() + "), class:" + ClassListData.getInstance().getClass(player.getClassId()).getClassName(), IllegalActionPunishmentType.NONE);
|
||||
if (Config.SKILL_CHECK_REMOVE)
|
||||
{
|
||||
player.removeSkill(s);
|
||||
@@ -268,11 +268,11 @@ public class SubClassSkills extends AbstractNpcAI
|
||||
{
|
||||
if (cSkills[i][1] == skill.getLevel())
|
||||
{
|
||||
Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " has invalid cert skill :" + skill.getName() + "(" + skill.getId() + "/" + skill.getLevel() + ")", IllegalActionPunishmentType.NONE);
|
||||
Util.handleIllegalPlayerAction(player, player + " has invalid cert skill :" + skill.getName() + "(" + skill.getId() + "/" + skill.getLevel() + ")", IllegalActionPunishmentType.NONE);
|
||||
}
|
||||
else
|
||||
{
|
||||
Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " has invalid cert skill :" + skill.getName() + "(" + skill.getId() + "/" + skill.getLevel() + "), level too high", IllegalActionPunishmentType.NONE);
|
||||
Util.handleIllegalPlayerAction(player, player + " has invalid cert skill :" + skill.getName() + "(" + skill.getId() + "/" + skill.getLevel() + "), level too high", IllegalActionPunishmentType.NONE);
|
||||
}
|
||||
|
||||
if (Config.SKILL_CHECK_REMOVE)
|
||||
|
@@ -126,7 +126,7 @@ public class SkillTransfer extends AbstractNpcAI
|
||||
if (count < 0)
|
||||
{
|
||||
final String className = ClassListData.getInstance().getClass(player.getClassId()).getClassName();
|
||||
Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " has too many transfered skills or items, skill:" + s.getName() + " (" + sk.getId() + "/" + sk.getLevel() + "), class:" + className, IllegalActionPunishmentType.BROADCAST);
|
||||
Util.handleIllegalPlayerAction(player, player + " has too many transfered skills or items, skill:" + s.getName() + " (" + sk.getId() + "/" + sk.getLevel() + "), class:" + className, IllegalActionPunishmentType.BROADCAST);
|
||||
if (Config.SKILL_CHECK_REMOVE)
|
||||
{
|
||||
player.removeSkill(sk);
|
||||
|
@@ -82,13 +82,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;
|
||||
|
@@ -326,7 +326,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;
|
||||
}
|
||||
|
@@ -82,7 +82,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;
|
||||
}
|
||||
|
||||
|
@@ -244,7 +244,7 @@ public class TerritoryWarSuperClass extends Quest
|
||||
}
|
||||
else
|
||||
{
|
||||
LOGGER.warning("TerritoryWar: Missing Kill the quest for player " + player.getName() + " whose class id: " + player.getClassId().getId());
|
||||
LOGGER.warning("TerritoryWar: Missing Kill the quest for " + player + " whose class id: " + player.getClassId().getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -372,7 +372,7 @@ public class TerritoryWarSuperClass extends Quest
|
||||
}
|
||||
else
|
||||
{
|
||||
LOGGER.warning("TerritoryWar: Missing Kill the quest for player " + player.getName() + " whose class id: " + player.getClassId().getId());
|
||||
LOGGER.warning("TerritoryWar: Missing Kill the quest for " + player + " whose class id: " + player.getClassId().getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user