Separated multiple variable declarations.
This commit is contained in:
@@ -128,7 +128,8 @@ public final class Parade extends AbstractNpcAI
|
||||
public Parade()
|
||||
{
|
||||
// Starts at 8:00 and repeats every 6 hours.
|
||||
final long diff = timeLeftMilli(8, 0, 0), cycle = 3600000;
|
||||
final long diff = timeLeftMilli(8, 0, 0);
|
||||
final long cycle = 3600000;
|
||||
ThreadPool.scheduleAtFixedRate(new Start(), diff, cycle);
|
||||
|
||||
// Test - Starts 3 minutes after server startup and repeats every 20 minutes.
|
||||
|
@@ -288,7 +288,8 @@ public final class TalentShow extends AbstractNpcAI
|
||||
final int gameTime = GameTimeController.getInstance().getGameTime();
|
||||
final int hours = (gameTime / 60) % 24;
|
||||
final int minutes = gameTime % 60;
|
||||
int hourDiff, minDiff;
|
||||
int hourDiff;
|
||||
int minDiff;
|
||||
hourDiff = 20 - hours;
|
||||
if (hourDiff < 0)
|
||||
{
|
||||
|
@@ -915,7 +915,8 @@ public class Lindvior extends AbstractNpcAI
|
||||
|
||||
private void spawnServitor(int count, int radius, Location loc, int... npcIds)
|
||||
{
|
||||
int x = loc.getX(), y = loc.getY();
|
||||
int x = loc.getX();
|
||||
int y = loc.getY();
|
||||
if (radius > 0)
|
||||
{
|
||||
x += Rnd.get(-radius, radius);
|
||||
|
@@ -775,9 +775,8 @@ public class AdminEditChar implements IAdminCommandHandler
|
||||
{
|
||||
final String val = command.substring(20);
|
||||
final int level = Integer.parseInt(val);
|
||||
long newexp, oldexp = 0;
|
||||
oldexp = pet.getStat().getExp();
|
||||
newexp = pet.getStat().getExpForLevel(level);
|
||||
final long oldexp = pet.getStat().getExp();
|
||||
final long newexp = pet.getStat().getExpForLevel(level);
|
||||
if (oldexp > newexp)
|
||||
{
|
||||
pet.getStat().removeExp(oldexp - newexp);
|
||||
@@ -1329,7 +1328,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
||||
|
||||
int CharactersFound = 0;
|
||||
L2GameClient client;
|
||||
String name, ip = "0.0.0.0";
|
||||
String ip = "0.0.0.0";
|
||||
final StringBuilder replyMSG = new StringBuilder(1000);
|
||||
final NpcHtmlMessage adminReply = new NpcHtmlMessage(0, 1);
|
||||
adminReply.setFile(activeChar, "data/html/admin/ipfind.htm");
|
||||
@@ -1365,7 +1364,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
||||
}
|
||||
}
|
||||
|
||||
name = player.getName();
|
||||
final String name = player.getName();
|
||||
CharactersFound += 1;
|
||||
replyMSG.append("<tr><td width=80><a action=\"bypass -h admin_character_info ");
|
||||
replyMSG.append(name);
|
||||
|
@@ -567,7 +567,8 @@ public class AdminEffects implements IAdminCommandHandler
|
||||
try
|
||||
{
|
||||
L2Object obj = activeChar.getTarget();
|
||||
int level = 1, hittime = 1;
|
||||
int level = 1;
|
||||
int hittime = 1;
|
||||
final int skill = Integer.parseInt(st.nextToken());
|
||||
if (st.hasMoreTokens())
|
||||
{
|
||||
|
@@ -140,7 +140,8 @@ public class AdminElement implements IAdminCommandHandler
|
||||
|
||||
if (itemInstance != null)
|
||||
{
|
||||
String old, current;
|
||||
String old;
|
||||
String current;
|
||||
final AttributeHolder element = itemInstance.getAttribute(type);
|
||||
if (element == null)
|
||||
{
|
||||
|
@@ -194,7 +194,10 @@ public class AdminQuest implements IAdminCommandHandler
|
||||
{
|
||||
final String questName = command.substring("admin_quest_info ".length());
|
||||
final Quest quest = QuestManager.getInstance().getQuest(questName);
|
||||
String events = "", npcs = "", items = "", timers = "";
|
||||
String events = "";
|
||||
String npcs = "";
|
||||
String items = "";
|
||||
String timers = "";
|
||||
int counter = 0;
|
||||
if (quest == null)
|
||||
{
|
||||
|
@@ -231,7 +231,9 @@ public class AdminTeleport implements IAdminCommandHandler
|
||||
else if (command.startsWith("admin_go"))
|
||||
{
|
||||
int intVal = 150;
|
||||
int x = activeChar.getX(), y = activeChar.getY(), z = activeChar.getZ();
|
||||
int x = activeChar.getX();
|
||||
int y = activeChar.getY();
|
||||
int z = activeChar.getZ();
|
||||
try
|
||||
{
|
||||
final String val = command.substring(8);
|
||||
|
@@ -38,7 +38,8 @@ public class VoiceCommand implements IBypassHandler
|
||||
// only voice commands allowed
|
||||
if ((command.length() > 7) && (command.charAt(6) == '.'))
|
||||
{
|
||||
final String vc, vparams;
|
||||
final String vc;
|
||||
final String vparams;
|
||||
final int endOfCommand = command.indexOf(" ", 7);
|
||||
if (endOfCommand > 0)
|
||||
{
|
||||
|
@@ -253,7 +253,8 @@ public class Debug implements ITelnetCommand
|
||||
|
||||
static String getServerStatus()
|
||||
{
|
||||
int playerCount = 0, objectCount = 0;
|
||||
int playerCount = 0;
|
||||
int objectCount = 0;
|
||||
final int max = LoginServerThread.getInstance().getMaxPlayer();
|
||||
|
||||
playerCount = L2World.getInstance().getPlayers().size();
|
||||
|
@@ -46,7 +46,9 @@ public class ChangePassword implements IVoicedCommandHandler
|
||||
final StringTokenizer st = new StringTokenizer(target);
|
||||
try
|
||||
{
|
||||
String curpass = null, newpass = null, repeatnewpass = null;
|
||||
String curpass = null;
|
||||
String newpass = null;
|
||||
String repeatnewpass = null;
|
||||
if (st.hasMoreTokens())
|
||||
{
|
||||
curpass = st.nextToken();
|
||||
|
Reference in New Issue
Block a user