diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
index e2cc7b5b80..3e1ac09aea 100644
--- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
@@ -60,7 +60,7 @@ public class L2NpcActionShift implements IActionShiftHandler
html.replace("%race%", npc.getTemplate().getRace().toString());
html.replace("%id%", String.valueOf(npc.getTemplate().getId()));
html.replace("%lvl%", String.valueOf(npc.getTemplate().getLevel()));
- html.replace("%name%", String.valueOf(npc.getTemplate().getName()));
+ html.replace("%name%", npc.getTemplate().getName());
html.replace("%tmplid%", String.valueOf(npc.getTemplate().getId()));
html.replace("%aggro%", String.valueOf((target instanceof L2Attackable) ? ((L2Attackable) target).getAggroRange() : 0));
html.replace("%hp%", String.valueOf((int) npc.getCurrentHp()));
@@ -86,7 +86,7 @@ public class L2NpcActionShift implements IActionShiftHandler
html.replace("%int%", String.valueOf(npc.getINT()));
html.replace("%wit%", String.valueOf(npc.getWIT()));
html.replace("%men%", String.valueOf(npc.getMEN()));
- html.replace("%loc%", String.valueOf(target.getX() + " " + target.getY() + " " + target.getZ()));
+ html.replace("%loc%", target.getX() + " " + target.getY() + " " + target.getZ());
html.replace("%heading%", String.valueOf(npc.getHeading()));
html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
@@ -115,8 +115,8 @@ public class L2NpcActionShift implements IActionShiftHandler
{
final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/');
html.replace("%spawnfile%", fileName);
- html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName()));
- html.replace("%spawngroup%", String.valueOf(template.getGroup().getName()));
+ html.replace("%spawnname%", template.getSpawnTemplate().getName());
+ html.replace("%spawngroup%", template.getGroup().getName());
if (template.getSpawnTemplate().getAI() != null)
{
final Quest script = QuestManager.getInstance().getQuest(template.getSpawnTemplate().getAI());
@@ -137,11 +137,11 @@ public class L2NpcActionShift implements IActionShiftHandler
}
else if (npc.getSpawn().hasRespawnRandom())
{
- html.replace("%resp%", String.valueOf(npc.getSpawn().getRespawnMinDelay() / 1000) + "-" + String.valueOf((npc.getSpawn().getRespawnMaxDelay() / 1000) + " sec"));
+ html.replace("%resp%", npc.getSpawn().getRespawnMinDelay() / 1000 + "-" + (npc.getSpawn().getRespawnMaxDelay() / 1000) + " sec");
}
else
{
- html.replace("%resp%", String.valueOf(npc.getSpawn().getRespawnMinDelay() / 1000) + " sec");
+ html.replace("%resp%", npc.getSpawn().getRespawnMinDelay() / 1000 + " sec");
}
}
else
@@ -164,11 +164,11 @@ public class L2NpcActionShift implements IActionShiftHandler
final String clansString = !clans.isEmpty() ? CommonUtil.implode(clans, ", ") : "";
final String ignoreClanNpcIdsString = ignoreClanNpcIds != null ? CommonUtil.implode(ignoreClanNpcIds, ", ") : "";
- html.replace("%ai_intention%", "
Intention: | " + String.valueOf(npc.getAI().getIntention().name()) + " |
|
");
+ html.replace("%ai_intention%", "Intention: | " + npc.getAI().getIntention().name() + " |
|
");
html.replace("%ai%", "AI | " + npc.getAI().getClass().getSimpleName() + " |
|
");
- html.replace("%ai_type%", "AIType | " + String.valueOf(npc.getAiType()) + " |
|
");
- html.replace("%ai_clan%", "Clan & Range: | " + clansString + " " + String.valueOf(npc.getTemplate().getClanHelpRange()) + " |
|
");
- html.replace("%ai_enemy_clan%", "Ignore & Range: | " + ignoreClanNpcIdsString + " " + String.valueOf(npc.getTemplate().getAggroRange()) + " |
|
");
+ html.replace("%ai_type%", "AIType | " + npc.getAiType() + " |
|
");
+ html.replace("%ai_clan%", "Clan & Range: | " + clansString + " " + npc.getTemplate().getClanHelpRange() + " |
|
");
+ html.replace("%ai_enemy_clan%", "Ignore & Range: | " + ignoreClanNpcIdsString + " " + npc.getTemplate().getAggroRange() + " |
|
");
}
else
{
diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
index 883150945a..c63cafe753 100644
--- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
@@ -109,7 +109,7 @@ public class AdminShutdown implements IAdminCommandHandler
adminReply.setFile(activeChar.getHtmlPrefix(), "data/html/admin/shutdown.htm");
adminReply.replace("%count%", String.valueOf(L2World.getInstance().getPlayers().size()));
adminReply.replace("%used%", String.valueOf(Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()));
- adminReply.replace("%time%", String.valueOf(format.format(cal.getTime())));
+ adminReply.replace("%time%", format.format(cal.getTime()));
activeChar.sendPacket(adminReply);
}
diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java
index 7b1bcbfc56..6f2671122b 100644
--- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java
@@ -73,8 +73,8 @@ public class Premium implements IVoicedCommandHandler
html.append("Drop Amount: x" + (Config.RATE_DEATH_DROP_AMOUNT_MULTIPLIER * Config.PREMIUM_RATE_DROP_AMOUNT) + " |
");
html.append("Spoil Chance: x" + (Config.RATE_CORPSE_DROP_CHANCE_MULTIPLIER * Config.PREMIUM_RATE_SPOIL_CHANCE) + " |
");
html.append("Spoil Amount: x" + (Config.RATE_CORPSE_DROP_AMOUNT_MULTIPLIER * Config.PREMIUM_RATE_SPOIL_AMOUNT) + " |
");
- html.append("Expires: " + String.valueOf(format.format(endDate)) + " |
");
- html.append("Current Date: " + String.valueOf(format.format(System.currentTimeMillis())) + "
|
");
+ html.append("Expires: " + format.format(endDate) + " |
");
+ html.append("Current Date: " + format.format(System.currentTimeMillis()) + "
|
");
html.append("Premium Info & Rules
|
");
html.append("1. Premium accounts CAN NOT BE TRANSFERED. |
");
html.append("2. Premium does not effect party members. |
");
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
index e2cc7b5b80..3e1ac09aea 100644
--- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
@@ -60,7 +60,7 @@ public class L2NpcActionShift implements IActionShiftHandler
html.replace("%race%", npc.getTemplate().getRace().toString());
html.replace("%id%", String.valueOf(npc.getTemplate().getId()));
html.replace("%lvl%", String.valueOf(npc.getTemplate().getLevel()));
- html.replace("%name%", String.valueOf(npc.getTemplate().getName()));
+ html.replace("%name%", npc.getTemplate().getName());
html.replace("%tmplid%", String.valueOf(npc.getTemplate().getId()));
html.replace("%aggro%", String.valueOf((target instanceof L2Attackable) ? ((L2Attackable) target).getAggroRange() : 0));
html.replace("%hp%", String.valueOf((int) npc.getCurrentHp()));
@@ -86,7 +86,7 @@ public class L2NpcActionShift implements IActionShiftHandler
html.replace("%int%", String.valueOf(npc.getINT()));
html.replace("%wit%", String.valueOf(npc.getWIT()));
html.replace("%men%", String.valueOf(npc.getMEN()));
- html.replace("%loc%", String.valueOf(target.getX() + " " + target.getY() + " " + target.getZ()));
+ html.replace("%loc%", target.getX() + " " + target.getY() + " " + target.getZ());
html.replace("%heading%", String.valueOf(npc.getHeading()));
html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
@@ -115,8 +115,8 @@ public class L2NpcActionShift implements IActionShiftHandler
{
final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/');
html.replace("%spawnfile%", fileName);
- html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName()));
- html.replace("%spawngroup%", String.valueOf(template.getGroup().getName()));
+ html.replace("%spawnname%", template.getSpawnTemplate().getName());
+ html.replace("%spawngroup%", template.getGroup().getName());
if (template.getSpawnTemplate().getAI() != null)
{
final Quest script = QuestManager.getInstance().getQuest(template.getSpawnTemplate().getAI());
@@ -137,11 +137,11 @@ public class L2NpcActionShift implements IActionShiftHandler
}
else if (npc.getSpawn().hasRespawnRandom())
{
- html.replace("%resp%", String.valueOf(npc.getSpawn().getRespawnMinDelay() / 1000) + "-" + String.valueOf((npc.getSpawn().getRespawnMaxDelay() / 1000) + " sec"));
+ html.replace("%resp%", npc.getSpawn().getRespawnMinDelay() / 1000 + "-" + (npc.getSpawn().getRespawnMaxDelay() / 1000) + " sec");
}
else
{
- html.replace("%resp%", String.valueOf(npc.getSpawn().getRespawnMinDelay() / 1000) + " sec");
+ html.replace("%resp%", npc.getSpawn().getRespawnMinDelay() / 1000 + " sec");
}
}
else
@@ -164,11 +164,11 @@ public class L2NpcActionShift implements IActionShiftHandler
final String clansString = !clans.isEmpty() ? CommonUtil.implode(clans, ", ") : "";
final String ignoreClanNpcIdsString = ignoreClanNpcIds != null ? CommonUtil.implode(ignoreClanNpcIds, ", ") : "";
- html.replace("%ai_intention%", "Intention: | " + String.valueOf(npc.getAI().getIntention().name()) + " |
|
");
+ html.replace("%ai_intention%", "Intention: | " + npc.getAI().getIntention().name() + " |
|
");
html.replace("%ai%", "AI | " + npc.getAI().getClass().getSimpleName() + " |
|
");
- html.replace("%ai_type%", "AIType | " + String.valueOf(npc.getAiType()) + " |
|
");
- html.replace("%ai_clan%", "Clan & Range: | " + clansString + " " + String.valueOf(npc.getTemplate().getClanHelpRange()) + " |
|
");
- html.replace("%ai_enemy_clan%", "Ignore & Range: | " + ignoreClanNpcIdsString + " " + String.valueOf(npc.getTemplate().getAggroRange()) + " |
|
");
+ html.replace("%ai_type%", "AIType | " + npc.getAiType() + " |
|
");
+ html.replace("%ai_clan%", "Clan & Range: | " + clansString + " " + npc.getTemplate().getClanHelpRange() + " |
|
");
+ html.replace("%ai_enemy_clan%", "Ignore & Range: | " + ignoreClanNpcIdsString + " " + npc.getTemplate().getAggroRange() + " |
|
");
}
else
{
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
index 883150945a..c63cafe753 100644
--- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
@@ -109,7 +109,7 @@ public class AdminShutdown implements IAdminCommandHandler
adminReply.setFile(activeChar.getHtmlPrefix(), "data/html/admin/shutdown.htm");
adminReply.replace("%count%", String.valueOf(L2World.getInstance().getPlayers().size()));
adminReply.replace("%used%", String.valueOf(Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()));
- adminReply.replace("%time%", String.valueOf(format.format(cal.getTime())));
+ adminReply.replace("%time%", format.format(cal.getTime()));
activeChar.sendPacket(adminReply);
}
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java
index 7b1bcbfc56..6f2671122b 100644
--- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java
@@ -73,8 +73,8 @@ public class Premium implements IVoicedCommandHandler
html.append("Drop Amount: x" + (Config.RATE_DEATH_DROP_AMOUNT_MULTIPLIER * Config.PREMIUM_RATE_DROP_AMOUNT) + " |
");
html.append("Spoil Chance: x" + (Config.RATE_CORPSE_DROP_CHANCE_MULTIPLIER * Config.PREMIUM_RATE_SPOIL_CHANCE) + " |
");
html.append("Spoil Amount: x" + (Config.RATE_CORPSE_DROP_AMOUNT_MULTIPLIER * Config.PREMIUM_RATE_SPOIL_AMOUNT) + " |
");
- html.append("Expires: " + String.valueOf(format.format(endDate)) + " |
");
- html.append("Current Date: " + String.valueOf(format.format(System.currentTimeMillis())) + "
|
");
+ html.append("Expires: " + format.format(endDate) + " |
");
+ html.append("Current Date: " + format.format(System.currentTimeMillis()) + "
|
");
html.append("Premium Info & Rules
|
");
html.append("1. Premium accounts CAN NOT BE TRANSFERED. |
");
html.append("2. Premium does not effect party members. |
");
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
index e2cc7b5b80..3e1ac09aea 100644
--- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
@@ -60,7 +60,7 @@ public class L2NpcActionShift implements IActionShiftHandler
html.replace("%race%", npc.getTemplate().getRace().toString());
html.replace("%id%", String.valueOf(npc.getTemplate().getId()));
html.replace("%lvl%", String.valueOf(npc.getTemplate().getLevel()));
- html.replace("%name%", String.valueOf(npc.getTemplate().getName()));
+ html.replace("%name%", npc.getTemplate().getName());
html.replace("%tmplid%", String.valueOf(npc.getTemplate().getId()));
html.replace("%aggro%", String.valueOf((target instanceof L2Attackable) ? ((L2Attackable) target).getAggroRange() : 0));
html.replace("%hp%", String.valueOf((int) npc.getCurrentHp()));
@@ -86,7 +86,7 @@ public class L2NpcActionShift implements IActionShiftHandler
html.replace("%int%", String.valueOf(npc.getINT()));
html.replace("%wit%", String.valueOf(npc.getWIT()));
html.replace("%men%", String.valueOf(npc.getMEN()));
- html.replace("%loc%", String.valueOf(target.getX() + " " + target.getY() + " " + target.getZ()));
+ html.replace("%loc%", target.getX() + " " + target.getY() + " " + target.getZ());
html.replace("%heading%", String.valueOf(npc.getHeading()));
html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
@@ -115,8 +115,8 @@ public class L2NpcActionShift implements IActionShiftHandler
{
final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/');
html.replace("%spawnfile%", fileName);
- html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName()));
- html.replace("%spawngroup%", String.valueOf(template.getGroup().getName()));
+ html.replace("%spawnname%", template.getSpawnTemplate().getName());
+ html.replace("%spawngroup%", template.getGroup().getName());
if (template.getSpawnTemplate().getAI() != null)
{
final Quest script = QuestManager.getInstance().getQuest(template.getSpawnTemplate().getAI());
@@ -137,11 +137,11 @@ public class L2NpcActionShift implements IActionShiftHandler
}
else if (npc.getSpawn().hasRespawnRandom())
{
- html.replace("%resp%", String.valueOf(npc.getSpawn().getRespawnMinDelay() / 1000) + "-" + String.valueOf((npc.getSpawn().getRespawnMaxDelay() / 1000) + " sec"));
+ html.replace("%resp%", npc.getSpawn().getRespawnMinDelay() / 1000 + "-" + (npc.getSpawn().getRespawnMaxDelay() / 1000) + " sec");
}
else
{
- html.replace("%resp%", String.valueOf(npc.getSpawn().getRespawnMinDelay() / 1000) + " sec");
+ html.replace("%resp%", npc.getSpawn().getRespawnMinDelay() / 1000 + " sec");
}
}
else
@@ -164,11 +164,11 @@ public class L2NpcActionShift implements IActionShiftHandler
final String clansString = !clans.isEmpty() ? CommonUtil.implode(clans, ", ") : "";
final String ignoreClanNpcIdsString = ignoreClanNpcIds != null ? CommonUtil.implode(ignoreClanNpcIds, ", ") : "";
- html.replace("%ai_intention%", "Intention: | " + String.valueOf(npc.getAI().getIntention().name()) + " |
|
");
+ html.replace("%ai_intention%", "Intention: | " + npc.getAI().getIntention().name() + " |
|
");
html.replace("%ai%", "AI | " + npc.getAI().getClass().getSimpleName() + " |
|
");
- html.replace("%ai_type%", "AIType | " + String.valueOf(npc.getAiType()) + " |
|
");
- html.replace("%ai_clan%", "Clan & Range: | " + clansString + " " + String.valueOf(npc.getTemplate().getClanHelpRange()) + " |
|
");
- html.replace("%ai_enemy_clan%", "Ignore & Range: | " + ignoreClanNpcIdsString + " " + String.valueOf(npc.getTemplate().getAggroRange()) + " |
|
");
+ html.replace("%ai_type%", "AIType | " + npc.getAiType() + " |
|
");
+ html.replace("%ai_clan%", "Clan & Range: | " + clansString + " " + npc.getTemplate().getClanHelpRange() + " |
|
");
+ html.replace("%ai_enemy_clan%", "Ignore & Range: | " + ignoreClanNpcIdsString + " " + npc.getTemplate().getAggroRange() + " |
|
");
}
else
{
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
index 883150945a..c63cafe753 100644
--- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
@@ -109,7 +109,7 @@ public class AdminShutdown implements IAdminCommandHandler
adminReply.setFile(activeChar.getHtmlPrefix(), "data/html/admin/shutdown.htm");
adminReply.replace("%count%", String.valueOf(L2World.getInstance().getPlayers().size()));
adminReply.replace("%used%", String.valueOf(Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()));
- adminReply.replace("%time%", String.valueOf(format.format(cal.getTime())));
+ adminReply.replace("%time%", format.format(cal.getTime()));
activeChar.sendPacket(adminReply);
}
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java
index 7b1bcbfc56..6f2671122b 100644
--- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/Premium.java
@@ -73,8 +73,8 @@ public class Premium implements IVoicedCommandHandler
html.append("Drop Amount: x" + (Config.RATE_DEATH_DROP_AMOUNT_MULTIPLIER * Config.PREMIUM_RATE_DROP_AMOUNT) + " |
");
html.append("Spoil Chance: x" + (Config.RATE_CORPSE_DROP_CHANCE_MULTIPLIER * Config.PREMIUM_RATE_SPOIL_CHANCE) + " |
");
html.append("Spoil Amount: x" + (Config.RATE_CORPSE_DROP_AMOUNT_MULTIPLIER * Config.PREMIUM_RATE_SPOIL_AMOUNT) + " |
");
- html.append("Expires: " + String.valueOf(format.format(endDate)) + " |
");
- html.append("Current Date: " + String.valueOf(format.format(System.currentTimeMillis())) + "
|
");
+ html.append("Expires: " + format.format(endDate) + " |
");
+ html.append("Current Date: " + format.format(System.currentTimeMillis()) + "
|
");
html.append("Premium Info & Rules
|
");
html.append("1. Premium accounts CAN NOT BE TRANSFERED. |
");
html.append("2. Premium does not effect party members. |
");
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/group_template/FeedableBeasts.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/group_template/FeedableBeasts.java
index 340c90bac4..ae4c9d651d 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/group_template/FeedableBeasts.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/group_template/FeedableBeasts.java
@@ -471,7 +471,7 @@ public final class FeedableBeasts extends AbstractNpcAI
if (MAD_COW_POLYMORPH.containsKey(nextNpcId))
{
- this.startQuestTimer("polymorph Mad Cow", 10000, nextNpc, player);
+ startQuestTimer("polymorph Mad Cow", 10000, nextNpc, player);
}
// register the player in the feedinfo for the mob that just spawned
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/group_template/LairOfAntharas.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/group_template/LairOfAntharas.java
index 0bc83fcdb0..ea9afe0e43 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/group_template/LairOfAntharas.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/group_template/LairOfAntharas.java
@@ -32,17 +32,17 @@ import ai.AbstractNpcAI;
public final class LairOfAntharas extends AbstractNpcAI
{
// NPC
- final private static int KNORIKS = 22857;
- final private static int DRAGON_KNIGHT = 22844;
- final private static int DRAGON_KNIGHT2 = 22845;
- final private static int ELITE_DRAGON_KNIGHT = 22846;
+ private static final int KNORIKS = 22857;
+ private static final int DRAGON_KNIGHT = 22844;
+ private static final int DRAGON_KNIGHT2 = 22845;
+ private static final int ELITE_DRAGON_KNIGHT = 22846;
- final private static int DRAGON_GUARD = 22852;
- final private static int DRAGON_MAGE = 22853;
+ private static final int DRAGON_GUARD = 22852;
+ private static final int DRAGON_MAGE = 22853;
// Misc
- final private static int KNIGHT_CHANCE = 30;
- final private static int KNORIKS_CHANCE = 60;
- final private static int KNORIKS_CHANCE2 = 50;
+ private static final int KNIGHT_CHANCE = 30;
+ private static final int KNORIKS_CHANCE = 60;
+ private static final int KNORIKS_CHANCE2 = 50;
private LairOfAntharas()
{
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/individual/Orfen.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/individual/Orfen.java
index bf87874da2..7633df8889 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/individual/Orfen.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/individual/Orfen.java
@@ -246,7 +246,7 @@ public final class Orfen extends AbstractNpcAI
if ((skill.getEffectPoint() > 0) && (getRandom(5) == 0) && npc.isInsideRadius(originalCaster, 1000, false, false))
{
final NpcSay packet = new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), TEXT[getRandom(4)]);
- packet.addStringParameter(caster.getName().toString());
+ packet.addStringParameter(caster.getName());
npc.broadcastPacket(packet);
originalCaster.teleToLocation(npc.getLocation());
npc.setTarget(originalCaster);
@@ -301,7 +301,7 @@ public final class Orfen extends AbstractNpcAI
else if (npc.isInsideRadius(attacker, 1000, false, false) && !npc.isInsideRadius(attacker, 300, false, false) && (getRandom(10) == 0))
{
final NpcSay packet = new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npcId, TEXT[getRandom(3)]);
- packet.addStringParameter(attacker.getName().toString());
+ packet.addStringParameter(attacker.getName());
npc.broadcastPacket(packet);
attacker.teleToLocation(npc.getLocation());
npc.setTarget(attacker);
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/CastleAmbassador/CastleAmbassador.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/CastleAmbassador/CastleAmbassador.java
index 815ff43f83..9acebb1874 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/CastleAmbassador/CastleAmbassador.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/CastleAmbassador/CastleAmbassador.java
@@ -114,7 +114,7 @@ public final class CastleAmbassador extends AbstractNpcAI
{
final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
packet.setHtml(getHtm(player.getHtmlPrefix(), htmltext));
- packet.replace("%castleName%", String.valueOf(fortresss.getCastleByAmbassador(npc.getId()).getName()));
+ packet.replace("%castleName%", fortresss.getCastleByAmbassador(npc.getId()).getName());
player.sendPacket(packet);
}
}
@@ -149,7 +149,7 @@ public final class CastleAmbassador extends AbstractNpcAI
final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
packet.setHtml(getHtm(player.getHtmlPrefix(), htmltext));
- packet.replace("%castleName%", String.valueOf(fortresss.getCastleByAmbassador(npc.getId()).getName()));
+ packet.replace("%castleName%", fortresss.getCastleByAmbassador(npc.getId()).getName());
player.sendPacket(packet);
return null;
}
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/CastleChamberlain/CastleChamberlain.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/CastleChamberlain/CastleChamberlain.java
index f725123396..daa14d24e5 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/CastleChamberlain/CastleChamberlain.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/CastleChamberlain/CastleChamberlain.java
@@ -1208,8 +1208,8 @@ public final class CastleChamberlain extends AbstractNpcAI
else
{
final NpcHtmlMessage html = getHtmlPacket(player, npc, "chamberlain-25.html");
- html.replace("%owner_name%", String.valueOf(player.getName()));
- html.replace("%feud_name%", String.valueOf(String.valueOf(1001000 + castle.getResidenceId())));
+ html.replace("%owner_name%", player.getName());
+ html.replace("%feud_name%", String.valueOf(1001000 + castle.getResidenceId()));
player.sendPacket(html);
giveItems(player, CROWN, 1);
}
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/SubclassCertification/SubclassCertification.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/SubclassCertification/SubclassCertification.java
index f0affc1b04..260170e21b 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/SubclassCertification/SubclassCertification.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/SubclassCertification/SubclassCertification.java
@@ -193,7 +193,7 @@ public final class SubclassCertification extends AbstractNpcAI
String htmltext = getHtm(player.getHtmlPrefix(), htmlFile);
if (replaceClass)
{
- htmltext = htmltext.replace("%class%", String.valueOf(ClassListData.getInstance().getClass(player.getActiveClass()).getClientCode()));
+ htmltext = htmltext.replace("%class%", ClassListData.getInstance().getClass(player.getActiveClass()).getClientCode());
}
if (levelToReplace != null)
{
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/HuntingGroundsTeleport/HuntingGroundsTeleport.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/HuntingGroundsTeleport/HuntingGroundsTeleport.java
index 32f3e725b8..fc64d693cc 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/HuntingGroundsTeleport/HuntingGroundsTeleport.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/HuntingGroundsTeleport/HuntingGroundsTeleport.java
@@ -31,7 +31,7 @@ public final class HuntingGroundsTeleport extends AbstractNpcAI
{
// NPCs
// @formatter:off
- private final static int[] PRIESTS =
+ private static final int[] PRIESTS =
{
31078, 31079, 31080, 31081, 31082, 31083, 31084, 31085, 31086, 31087,
31088, 31089, 31090, 31091, 31168, 31169, 31692, 31693, 31694, 31695,
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/MithrilMinesTeleporter/MithrilMinesTeleporter.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/MithrilMinesTeleporter/MithrilMinesTeleporter.java
index fcb6d2bdb0..3e2967bb1d 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/MithrilMinesTeleporter/MithrilMinesTeleporter.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/MithrilMinesTeleporter/MithrilMinesTeleporter.java
@@ -29,7 +29,7 @@ import ai.AbstractNpcAI;
public final class MithrilMinesTeleporter extends AbstractNpcAI
{
// NPC
- private final static int TELEPORT_CRYSTAL = 32652;
+ private static final int TELEPORT_CRYSTAL = 32652;
// Location
private static final Location[] LOCS =
{
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/OracleTeleport/OracleTeleport.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/OracleTeleport/OracleTeleport.java
index fd5495ea5c..ce0f7fe919 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/OracleTeleport/OracleTeleport.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/OracleTeleport/OracleTeleport.java
@@ -35,27 +35,27 @@ import ai.AbstractNpcAI;
public final class OracleTeleport extends AbstractNpcAI
{
// @formatter:off
- private final static int[] TOWN_DAWN =
+ private static final int[] TOWN_DAWN =
{
31078, 31079, 31080, 31081, 31083, 31084, 31082, 31692, 31694, 31997, 31168
};
- private final static int[] TOWN_DUSK =
+ private static final int[] TOWN_DUSK =
{
31085, 31086, 31087, 31088, 31090, 31091, 31089, 31693, 31695, 31998, 31169
};
- private final static int[] TEMPLE_PRIEST =
+ private static final int[] TEMPLE_PRIEST =
{
31127, 31128, 31129, 31130, 31131, 31137, 31138, 31139, 31140, 31141
};
- private final static int[] RIFT_POSTERS =
+ private static final int[] RIFT_POSTERS =
{
31488, 31489, 31490, 31491, 31492, 31493
};
- private final static int[] TELEPORTERS =
+ private static final int[] TELEPORTERS =
{
31078, 31079, 31080, 31081, 31082, 31083, 31084, 31692, 31694, 31997,
31168, 31085, 31086, 31087, 31088, 31089, 31090, 31091, 31693, 31695,
@@ -66,7 +66,7 @@ public final class OracleTeleport extends AbstractNpcAI
31122, 31123, 31124, 31125
};
// @formatter:on
- private final static Location[] RETURN_LOCS =
+ private static final Location[] RETURN_LOCS =
{
new Location(-80555, 150337, -3040),
new Location(-13953, 121404, -2984),
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/StakatoNestTeleporter/StakatoNestTeleporter.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/StakatoNestTeleporter/StakatoNestTeleporter.java
index e72182bc10..1a01068d92 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/StakatoNestTeleporter/StakatoNestTeleporter.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/StakatoNestTeleporter/StakatoNestTeleporter.java
@@ -31,7 +31,7 @@ import quests.Q00240_ImTheOnlyOneYouCanTrust.Q00240_ImTheOnlyOneYouCanTrust;
public final class StakatoNestTeleporter extends AbstractNpcAI
{
// Locations
- private final static Location[] LOCS =
+ private static final Location[] LOCS =
{
new Location(80456, -52322, -5640),
new Location(88718, -46214, -4640),
@@ -40,7 +40,7 @@ public final class StakatoNestTeleporter extends AbstractNpcAI
new Location(87682, -43291, -4128)
};
// NPC
- private final static int KINTAIJIN = 32640;
+ private static final int KINTAIJIN = 32640;
private StakatoNestTeleporter()
{
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/StrongholdsTeleports/StrongholdsTeleports.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/StrongholdsTeleports/StrongholdsTeleports.java
index a11b6277c0..89cc361ae7 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/StrongholdsTeleports/StrongholdsTeleports.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/StrongholdsTeleports/StrongholdsTeleports.java
@@ -29,7 +29,7 @@ import ai.AbstractNpcAI;
public final class StrongholdsTeleports extends AbstractNpcAI
{
// NPCs
- private final static int[] NPCs =
+ private static final int[] NPCs =
{
32163,
32181,
@@ -48,9 +48,9 @@ public final class StrongholdsTeleports extends AbstractNpcAI
{
if (player.getLevel() < 20)
{
- return String.valueOf(npc.getId()) + ".htm";
+ return npc.getId() + ".htm";
}
- return String.valueOf(npc.getId()) + "-no.htm";
+ return npc.getId() + "-no.htm";
}
public static void main(String[] args)
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/TeleportWithCharm/TeleportWithCharm.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/TeleportWithCharm/TeleportWithCharm.java
index e50fb4acd9..e0d053941d 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/TeleportWithCharm/TeleportWithCharm.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/npc/Teleports/TeleportWithCharm/TeleportWithCharm.java
@@ -30,14 +30,14 @@ import ai.AbstractNpcAI;
public final class TeleportWithCharm extends AbstractNpcAI
{
// NPCs
- private final static int WHIRPY = 30540;
- private final static int TAMIL = 30576;
+ private static final int WHIRPY = 30540;
+ private static final int TAMIL = 30576;
// Items
- private final static int ORC_GATEKEEPER_CHARM = 1658;
- private final static int DWARF_GATEKEEPER_TOKEN = 1659;
+ private static final int ORC_GATEKEEPER_CHARM = 1658;
+ private static final int DWARF_GATEKEEPER_TOKEN = 1659;
// Locations
- private final static Location ORC_TELEPORT = new Location(-80826, 149775, -3043);
- private final static Location DWARF_TELEPORT = new Location(-80826, 149775, -3043);
+ private static final Location ORC_TELEPORT = new Location(-80826, 149775, -3043);
+ private static final Location DWARF_TELEPORT = new Location(-80826, 149775, -3043);
private TeleportWithCharm()
{
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/EchoCrystals/EchoCrystals.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/EchoCrystals/EchoCrystals.java
index a7f8474a18..1b510669ec 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/EchoCrystals/EchoCrystals.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/EchoCrystals/EchoCrystals.java
@@ -31,7 +31,7 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class EchoCrystals extends Quest
{
- private final static int[] NPCs =
+ private static final int[] NPCs =
{
31042,
31043
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/NpcBuffer/NpcBuffer.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/NpcBuffer/NpcBuffer.java
index 19b5a2a064..65dcd18fcf 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/NpcBuffer/NpcBuffer.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/NpcBuffer/NpcBuffer.java
@@ -59,7 +59,7 @@ public class NpcBuffer extends Quest
private static void print(Exception e)
{
- _log.warning(">>>" + e.toString() + "<<<");
+ _log.warning(">>>" + e + "<<<");
if (DEBUG)
{
e.printStackTrace();
@@ -2023,7 +2023,7 @@ public class NpcBuffer extends Quest
return formatted;
}
- static public void main(String[] args)
+ public static void main(String[] args)
{
new NpcBuffer();
}
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/NpcLocationInfo/NpcLocationInfo.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/NpcLocationInfo/NpcLocationInfo.java
index 3eeaa3aac7..752b129676 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/NpcLocationInfo/NpcLocationInfo.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/NpcLocationInfo/NpcLocationInfo.java
@@ -302,7 +302,7 @@ public final class NpcLocationInfo extends Quest
if (Util.contains(NPC, npcId))
{
- htmltext = String.valueOf(npcId) + ".htm";
+ htmltext = npcId + ".htm";
}
return htmltext;
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/Validators/SubClassSkills.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/Validators/SubClassSkills.java
index d28e6ad81c..78131cddfe 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/Validators/SubClassSkills.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/Validators/SubClassSkills.java
@@ -149,7 +149,7 @@ public final class SubClassSkills extends Quest
{
for (int j = Config.MAX_SUBCLASS; j > 0; j--)
{
- qName = VARS[i] + String.valueOf(j);
+ qName = VARS[i] + j;
qValue = player.getVariables().getString(qName);
if ((qValue == null) || qValue.isEmpty())
{
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Elpies/Elpies.java
index b542658795..953a7f89a9 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Elpies/Elpies.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Elpies/Elpies.java
@@ -220,7 +220,7 @@ public final class Elpies extends Event
}
}
- private static final void dropItem(L2Npc mob, L2PcInstance player, int[][] droplist)
+ private static void dropItem(L2Npc mob, L2PcInstance player, int[][] droplist)
{
final int chance = getRandom(100);
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/CharacterBirthday/CharacterBirthday.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/CharacterBirthday/CharacterBirthday.java
index 2e0e10d685..07ce2fd248 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/CharacterBirthday/CharacterBirthday.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/CharacterBirthday/CharacterBirthday.java
@@ -31,7 +31,7 @@ public final class CharacterBirthday extends Quest
private static final int ALEGRIA = 32600;
private static int SPAWNS = 0;
- private final static int[] GK =
+ private static final int[] GK =
{
30006,
30059,
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java
index 49699a2b82..e8216dfa9a 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java
@@ -27,20 +27,20 @@ import com.l2jmobius.gameserver.model.event.LongTimeEvent;
*/
public final class HeavyMedal extends LongTimeEvent
{
- private final static int CAT_ROY = 31228;
- private final static int CAT_WINNIE = 31229;
- private final static int GLITTERING_MEDAL = 6393;
+ private static final int CAT_ROY = 31228;
+ private static final int CAT_WINNIE = 31229;
+ private static final int GLITTERING_MEDAL = 6393;
- private final static int WIN_CHANCE = 50;
+ private static final int WIN_CHANCE = 50;
- private final static int[] MEDALS =
+ private static final int[] MEDALS =
{
5,
10,
20,
40
};
- private final static int[] BADGES =
+ private static final int[] BADGES =
{
6399,
6400,
@@ -93,12 +93,12 @@ public final class HeavyMedal extends LongTimeEvent
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
level++;
}
- htmltext = "31229-" + event.toLowerCase() + "-" + String.valueOf(level) + ".htm";
+ htmltext = "31229-" + event.toLowerCase() + "-" + level + ".htm";
}
}
else if (event.equalsIgnoreCase("talk"))
{
- htmltext = String.valueOf(npc.getId()) + "-lvl-" + String.valueOf(level) + ".htm";
+ htmltext = npc.getId() + "-lvl-" + level + ".htm";
}
return htmltext;
}
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java
index a386b1ca5f..64d20b2519 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java
@@ -608,7 +608,7 @@ public class HallOfErosionAttack extends AbstractNpcAI
return "";
}
- private static final void finishInstance(InstanceWorld world)
+ private static void finishInstance(InstanceWorld world)
{
if (world instanceof HEAWorld)
{
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/gracia/instances/SeedOfDestruction/SeedOfDestruction.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/gracia/instances/SeedOfDestruction/SeedOfDestruction.java
index c285d596dc..8ea45f9d15 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/gracia/instances/SeedOfDestruction/SeedOfDestruction.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/gracia/instances/SeedOfDestruction/SeedOfDestruction.java
@@ -981,7 +981,7 @@ public class SeedOfDestruction extends AbstractNpcAI
}
}
- private static final void removeBuffs(L2Character ch)
+ private static void removeBuffs(L2Character ch)
{
ch.stopAllEffectsExceptThoseThatLastThroughDeath();
if (ch.hasSummon())
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
index 8a0690cf05..9908fc35ec 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java
@@ -70,7 +70,7 @@ public class L2NpcActionShift implements IActionShiftHandler
html.replace("%race%", ((L2Npc) target).getTemplate().getRace().toString());
html.replace("%id%", String.valueOf(((L2Npc) target).getTemplate().getId()));
html.replace("%lvl%", String.valueOf(((L2Npc) target).getTemplate().getLevel()));
- html.replace("%name%", String.valueOf(((L2Npc) target).getTemplate().getName()));
+ html.replace("%name%", ((L2Npc) target).getTemplate().getName());
html.replace("%tmplid%", String.valueOf(((L2Npc) target).getTemplate().getId()));
html.replace("%aggro%", String.valueOf((target instanceof L2Attackable) ? ((L2Attackable) target).getAggroRange() : 0));
html.replace("%hp%", String.valueOf((int) ((L2Character) target).getCurrentHp()));
@@ -96,7 +96,7 @@ public class L2NpcActionShift implements IActionShiftHandler
html.replace("%int%", String.valueOf(((L2Character) target).getINT()));
html.replace("%wit%", String.valueOf(((L2Character) target).getWIT()));
html.replace("%men%", String.valueOf(((L2Character) target).getMEN()));
- html.replace("%loc%", String.valueOf(target.getX() + " " + target.getY() + " " + target.getZ()));
+ html.replace("%loc%", target.getX() + " " + target.getY() + " " + target.getZ());
html.replace("%heading%", String.valueOf(((L2Character) target).getHeading()));
html.replace("%collision_radius%", String.valueOf(((L2Character) target).getTemplate().getfCollisionRadius()));
html.replace("%collision_height%", String.valueOf(((L2Character) target).getTemplate().getfCollisionHeight()));
@@ -134,11 +134,11 @@ public class L2NpcActionShift implements IActionShiftHandler
}
else if (((L2Npc) target).getSpawn().hasRespawnRandom())
{
- html.replace("%resp%", String.valueOf(((L2Npc) target).getSpawn().getRespawnMinDelay() / 1000) + "-" + String.valueOf((((L2Npc) target).getSpawn().getRespawnMaxDelay() / 1000) + " sec"));
+ html.replace("%resp%", ((L2Npc) target).getSpawn().getRespawnMinDelay() / 1000 + "-" + (((L2Npc) target).getSpawn().getRespawnMaxDelay() / 1000) + " sec");
}
else
{
- html.replace("%resp%", String.valueOf(((L2Npc) target).getSpawn().getRespawnMinDelay() / 1000) + " sec");
+ html.replace("%resp%", ((L2Npc) target).getSpawn().getRespawnMinDelay() / 1000 + " sec");
}
}
else
@@ -158,11 +158,11 @@ public class L2NpcActionShift implements IActionShiftHandler
final String clansString = clans != null ? Util.implode(clans.toArray(), ", ") : "";
final String ignoreClanNpcIdsString = ignoreClanNpcIds != null ? Util.implode(ignoreClanNpcIds.toArray(), ", ") : "";
- html.replace("%ai_intention%", "Intention: | " + String.valueOf(((L2Npc) target).getAI().getIntention().name()) + " |
|
");
+ html.replace("%ai_intention%", "Intention: | " + ((L2Npc) target).getAI().getIntention().name() + " |
|
");
html.replace("%ai%", "AI | " + ((L2Npc) target).getAI().getClass().getSimpleName() + " |
|
");
- html.replace("%ai_type%", "AIType | " + String.valueOf(((L2Npc) target).getAiType()) + " |
|
");
- html.replace("%ai_clan%", "Clan & Range: | " + clansString + " " + String.valueOf(((L2Npc) target).getTemplate().getClanHelpRange()) + " |
|
");
- html.replace("%ai_enemy_clan%", "Ignore & Range: | " + ignoreClanNpcIdsString + " " + String.valueOf(((L2Npc) target).getTemplate().getAggroRange()) + " |
|
");
+ html.replace("%ai_type%", "AIType | " + ((L2Npc) target).getAiType() + " |
|
");
+ html.replace("%ai_clan%", "Clan & Range: | " + clansString + " " + ((L2Npc) target).getTemplate().getClanHelpRange() + " |
|
");
+ html.replace("%ai_enemy_clan%", "Ignore & Range: | " + ignoreClanNpcIdsString + " " + ((L2Npc) target).getTemplate().getAggroRange() + " |
|
");
}
else
{
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminBuffs.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminBuffs.java
index 26193b06d2..5f5f167e55 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminBuffs.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminBuffs.java
@@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.util.GMAudit;
public class AdminBuffs implements IAdminCommandHandler
{
- private final static int PAGE_LIMIT = 20;
+ private static final int PAGE_LIMIT = 20;
private static final String[] ADMIN_COMMANDS =
{
@@ -338,7 +338,7 @@ public class AdminBuffs implements IAdminCommandHandler
String slots = "";
for (AbnormalType slot : target.getEffectList().getAllBlockedBuffSlots())
{
- slots += slot.toString() + ", ";
+ slots += slot + ", ";
}
if (!slots.isEmpty() && (slots.length() > 3))
@@ -352,7 +352,7 @@ public class AdminBuffs implements IAdminCommandHandler
if (Config.GMAUDIT)
{
- GMAudit.auditGMAction(activeChar.getName() + " [" + activeChar.getObjectId() + "]", "getbuffs", target.getName() + " (" + Integer.toString(target.getObjectId()) + ")", "");
+ GMAudit.auditGMAction(activeChar.getName() + " [" + activeChar.getObjectId() + "]", "getbuffs", target.getName() + " (" + target.getObjectId() + ")", "");
}
}
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminCHSiege.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminCHSiege.java
index c253ccfb9d..4376640637 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminCHSiege.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminCHSiege.java
@@ -69,7 +69,8 @@ public final class AdminCHSiege implements IAdminCommandHandler
activeChar.sendMessage("You have to specify the hall id at least");
return false;
}
- if ((hall = getHall(split[1], activeChar)) == null)
+ hall = getHall(split[1], activeChar);
+ if (hall == null)
{
activeChar.sendMessage("Couldnt find he desired siegable hall (" + split[1] + ")");
return false;
@@ -161,7 +162,7 @@ public final class AdminCHSiege implements IAdminCommandHandler
if (c.getTimeInMillis() > System.currentTimeMillis())
{
- activeChar.sendMessage(hall.getName() + " siege: " + c.getTime().toString());
+ activeChar.sendMessage(hall.getName() + " siege: " + c.getTime());
hall.setNextSiegeDate(c.getTimeInMillis());
hall.getSiege().updateSiege();
hall.updateDb();
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java
index ce69e7222a..e5f4aa140a 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java
@@ -1040,8 +1040,8 @@ public class AdminEditChar implements IAdminCommandHandler
adminReply.replace("%account%", player.getAccountName());
adminReply.replace("%ip%", ip);
adminReply.replace("%hwid%", hwid);
- adminReply.replace("%ai%", String.valueOf(player.getAI().getIntention().name()));
- adminReply.replace("%inst%", player.getInstanceId() > 0 ? "InstanceId: | " + String.valueOf(player.getInstanceId()) + " |
" : "");
+ adminReply.replace("%ai%", player.getAI().getIntention().name());
+ adminReply.replace("%inst%", player.getInstanceId() > 0 ? "InstanceId: | " + player.getInstanceId() + " |
" : "");
adminReply.replace("%noblesse%", player.isNoble() ? "Yes" : "No");
activeChar.sendPacket(adminReply);
}
@@ -1251,7 +1251,7 @@ public class AdminEditChar implements IAdminCommandHandler
}
else if (CharactersFound > 20)
{
- adminReply.replace("%number%", " more than " + String.valueOf(CharactersFound));
+ adminReply.replace("%number%", " more than " + CharactersFound);
replyMSG2 = "s.
In order to avoid you a client crash I won't display results beyond the 20th character.";
}
else if (CharactersFound == 1)
@@ -1487,7 +1487,7 @@ public class AdminEditChar implements IAdminCommandHandler
final String owner = target.getActingPlayer().getName();
html.replace("%owner%", " " + owner + "");
html.replace("%class%", target.getClass().getSimpleName());
- html.replace("%ai%", target.hasAI() ? String.valueOf(target.getAI().getIntention().name()) : "NULL");
+ html.replace("%ai%", target.hasAI() ? target.getAI().getIntention().name() : "NULL");
html.replace("%hp%", (int) target.getStatus().getCurrentHp() + "/" + target.getStat().getMaxHp());
html.replace("%mp%", (int) target.getStatus().getCurrentMp() + "/" + target.getStat().getMaxMp());
html.replace("%karma%", Integer.toString(target.getKarma()));
@@ -1531,7 +1531,7 @@ public class AdminEditChar implements IAdminCommandHandler
text.append("");
}
text.append(member.getLevel() + " | " + member.getName() + "");
- text.append(" | " + member.getClassId().toString() + " |
|
");
+ text.append("" + member.getClassId() + " | ");
color = !color;
}
html.replace("%player%", target.getName());
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEventEngine.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEventEngine.java
index 8e2a4d2490..0e79085b16 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEventEngine.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEventEngine.java
@@ -477,7 +477,7 @@ public class AdminEventEngine implements IAdminCommandHandler
result.append("");
- return note + result.toString();
+ return note + result;
}
public void showMainPage(L2PcInstance activeChar)
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminPForge.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminPForge.java
index a87860d85a..8d9e9cea1b 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminPForge.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminPForge.java
@@ -458,7 +458,7 @@ public final class AdminPForge implements IAdminCommandHandler
target = activeChar.getTarget();
if ((target != null) && (target instanceof L2Character))
{
- value = String.valueOf(((L2Character) target).getTitle());
+ value = ((L2Character) target).getTitle();
}
else
{
@@ -469,7 +469,7 @@ public final class AdminPForge implements IAdminCommandHandler
target = activeChar.getTarget();
if (target != null)
{
- value = String.valueOf(target.getName());
+ value = target.getName();
}
else
{
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminPunishment.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminPunishment.java
index c5b33363d8..295d5fbf86 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminPunishment.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminPunishment.java
@@ -385,7 +385,7 @@ public class AdminPunishment implements IAdminCommandHandler
return true;
}
- private static final String findCharId(String key)
+ private static String findCharId(String key)
{
final int charId = CharNameTable.getInstance().getIdByName(key);
if (charId > 0) // Yeah its a char name!
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminShowQuests.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminShowQuests.java
index e1619ac625..187079317b 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminShowQuests.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminShowQuests.java
@@ -89,7 +89,7 @@ public class AdminShowQuests implements IAdminCommandHandler
{
val[0] = "full";
}
- if (cmdParams[2].indexOf("_") != -1)
+ if (cmdParams[2].contains("_"))
{
val[0] = "name";
val[1] = cmdParams[2];
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
index 5e51818365..54b7d7915f 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminShutdown.java
@@ -112,7 +112,7 @@ public class AdminShutdown implements IAdminCommandHandler
adminReply.setFile(activeChar.getHtmlPrefix(), "data/html/admin/shutdown.htm");
adminReply.replace("%count%", String.valueOf(L2World.getInstance().getAllPlayersCount()));
adminReply.replace("%used%", String.valueOf(Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()));
- adminReply.replace("%time%", String.valueOf(format.format(cal.getTime())));
+ adminReply.replace("%time%", format.format(cal.getTime()));
activeChar.sendPacket(adminReply);
}
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminSiege.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminSiege.java
index 5f2805f168..aa9cf50e09 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminSiege.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminSiege.java
@@ -365,7 +365,7 @@ public class AdminSiege implements IAdminCommandHandler
{
if (hall != null)
{
- cList.append("" + hall.getName() + " | ");
+ cList.append("" + hall.getName() + " | ");
i++;
}
if (i > 1)
@@ -381,7 +381,7 @@ public class AdminSiege implements IAdminCommandHandler
{
if (clanhall != null)
{
- cList.append("" + clanhall.getName() + " | ");
+ cList.append("" + clanhall.getName() + " | ");
i++;
}
if (i > 1)
@@ -397,7 +397,7 @@ public class AdminSiege implements IAdminCommandHandler
{
if (clanhall != null)
{
- cList.append("" + clanhall.getName() + " | ");
+ cList.append("" + clanhall.getName() + " | ");
i++;
}
if (i > 1)
@@ -453,18 +453,18 @@ public class AdminSiege implements IAdminCommandHandler
if (isSunday)
{
adminReply.replace("%sundaylink%", String.valueOf(newDay.get(Calendar.DAY_OF_YEAR)));
- adminReply.replace("%sunday%", String.valueOf(newDay.get(Calendar.MONTH) + "/" + String.valueOf(newDay.get(Calendar.DAY_OF_MONTH))));
+ adminReply.replace("%sunday%", newDay.get(Calendar.MONTH) + "/" + newDay.get(Calendar.DAY_OF_MONTH));
newDay.add(Calendar.DAY_OF_MONTH, 13);
adminReply.replace("%saturdaylink%", String.valueOf(newDay.get(Calendar.DAY_OF_YEAR)));
- adminReply.replace("%saturday%", String.valueOf(newDay.get(Calendar.MONTH) + "/" + String.valueOf(newDay.get(Calendar.DAY_OF_MONTH))));
+ adminReply.replace("%saturday%", newDay.get(Calendar.MONTH) + "/" + newDay.get(Calendar.DAY_OF_MONTH));
}
else
{
adminReply.replace("%saturdaylink%", String.valueOf(newDay.get(Calendar.DAY_OF_YEAR)));
- adminReply.replace("%saturday%", String.valueOf(newDay.get(Calendar.MONTH) + "/" + String.valueOf(newDay.get(Calendar.DAY_OF_MONTH))));
+ adminReply.replace("%saturday%", newDay.get(Calendar.MONTH) + "/" + newDay.get(Calendar.DAY_OF_MONTH));
newDay.add(Calendar.DAY_OF_MONTH, 1);
adminReply.replace("%sundaylink%", String.valueOf(newDay.get(Calendar.DAY_OF_YEAR)));
- adminReply.replace("%sunday%", String.valueOf(newDay.get(Calendar.MONTH) + "/" + String.valueOf(newDay.get(Calendar.DAY_OF_MONTH))));
+ adminReply.replace("%sunday%", newDay.get(Calendar.MONTH) + "/" + newDay.get(Calendar.DAY_OF_MONTH));
}
activeChar.sendPacket(adminReply);
}
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/ClanWarehouse.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/ClanWarehouse.java
index c769fe36d9..e93d16cd8b 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/ClanWarehouse.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/ClanWarehouse.java
@@ -128,7 +128,7 @@ public class ClanWarehouse implements IBypassHandler
return false;
}
- private static final void showWithdrawWindow(L2PcInstance player, WarehouseListType itemtype, byte sortorder)
+ private static void showWithdrawWindow(L2PcInstance player, WarehouseListType itemtype, byte sortorder)
{
player.sendPacket(ActionFailed.STATIC_PACKET);
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/Festival.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/Festival.java
index 16cf44e49c..65469b2aea 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/Festival.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/Festival.java
@@ -227,7 +227,7 @@ public class Festival implements IBypassHandler
if (dawnScore > 0)
{
- strBuffer.append("Dawn: " + calculateDate(dawnData.getString("date")) + ". Score " + String.valueOf(dawnScore) + "
" + dawnData.getString("members") + "
");
+ strBuffer.append("Dawn: " + calculateDate(dawnData.getString("date")) + ". Score " + dawnScore + "
" + dawnData.getString("members") + "
");
}
else
{
@@ -236,7 +236,7 @@ public class Festival implements IBypassHandler
if (duskScore > 0)
{
- strBuffer.append("Dusk: " + calculateDate(duskData.getString("date")) + ". Score " + String.valueOf(duskScore) + "
" + duskData.getString("members") + "
");
+ strBuffer.append("Dusk: " + calculateDate(duskData.getString("date")) + ". Score " + duskScore + "
" + duskData.getString("members") + "
");
}
else
{
@@ -255,14 +255,14 @@ public class Festival implements IBypassHandler
cabalStr = "Children of Dusk";
}
- strBuffer.append("Consecutive top scores: " + calculateDate(overallData.getString("date")) + ". Score " + String.valueOf(overallScore) + "
Affilated side: " + cabalStr + "
" + overallData.getString("members") + "
");
+ strBuffer.append("Consecutive top scores: " + calculateDate(overallData.getString("date")) + ". Score " + overallScore + "
Affilated side: " + cabalStr + "
" + overallData.getString("members") + "
");
}
else
{
strBuffer.append("Consecutive top scores: No record exists. Score 0
");
}
- strBuffer.append("Go back.