Added missing final modifiers.
This commit is contained in:
@ -47,9 +47,9 @@ public class ChannelDelete implements IUserCommandHandler
|
||||
{
|
||||
if (activeChar.getParty().isLeader(activeChar) && activeChar.getParty().isInCommandChannel() && activeChar.getParty().getCommandChannel().getLeader().equals(activeChar))
|
||||
{
|
||||
L2CommandChannel channel = activeChar.getParty().getCommandChannel();
|
||||
final L2CommandChannel channel = activeChar.getParty().getCommandChannel();
|
||||
|
||||
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.THE_COMMAND_CHANNEL_HAS_BEEN_DISBANDED);
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.THE_COMMAND_CHANNEL_HAS_BEEN_DISBANDED);
|
||||
channel.broadcastPacket(sm);
|
||||
|
||||
channel.disbandChannel();
|
||||
|
@ -45,7 +45,7 @@ public class ClanPenalty implements IUserCommandHandler
|
||||
}
|
||||
|
||||
boolean penalty = false;
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
||||
final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
||||
final StringBuilder htmlContent = StringUtil.startAppend(500, "<html><body><center><table width=270 border=0 bgcolor=111111><tr><td width=170>Penalty</td><td width=100 align=center>Expiration Date</td></tr></table><table width=270 border=0><tr>");
|
||||
|
||||
if (activeChar.getClanJoinExpiryTime() > System.currentTimeMillis())
|
||||
|
@ -95,8 +95,8 @@ public class ClanWarsList implements IUserCommandHandler
|
||||
{
|
||||
while (rs.next())
|
||||
{
|
||||
String clanName = rs.getString("clan_name");
|
||||
int allyId = rs.getInt("ally_id");
|
||||
final String clanName = rs.getString("clan_name");
|
||||
final int allyId = rs.getInt("ally_id");
|
||||
if (allyId > 0)
|
||||
{
|
||||
// Target With Ally
|
||||
|
@ -41,7 +41,7 @@ public class Loc implements IUserCommandHandler
|
||||
public boolean useUserCommand(int id, L2PcInstance activeChar)
|
||||
{
|
||||
int region;
|
||||
L2RespawnZone zone = ZoneManager.getInstance().getZone(activeChar, L2RespawnZone.class);
|
||||
final L2RespawnZone zone = ZoneManager.getInstance().getZone(activeChar, L2RespawnZone.class);
|
||||
if (zone != null)
|
||||
{
|
||||
region = MapRegionManager.getInstance().getRestartRegion(activeChar, zone.getAllRespawnPoints().get(Race.HUMAN)).getLocId();
|
||||
|
@ -44,9 +44,9 @@ public class MyBirthday implements IUserCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
Calendar date = activeChar.getCreateDate();
|
||||
final Calendar date = activeChar.getCreateDate();
|
||||
|
||||
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_S_BIRTHDAY_IS_S3_S4_S2);
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_S_BIRTHDAY_IS_S3_S4_S2);
|
||||
sm.addPcName(activeChar);
|
||||
sm.addString(Integer.toString(date.get(Calendar.YEAR)));
|
||||
sm.addString(Integer.toString(date.get(Calendar.MONTH) + 1));
|
||||
|
@ -48,8 +48,8 @@ public class Time implements IUserCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
int t = GameTimeController.getInstance().getGameTime();
|
||||
String h = "" + ((t / 60) % 24);
|
||||
final int t = GameTimeController.getInstance().getGameTime();
|
||||
final String h = "" + ((t / 60) % 24);
|
||||
String m;
|
||||
if ((t % 60) < 10)
|
||||
{
|
||||
|
@ -59,7 +59,7 @@ public class Unstuck implements IUserCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||
|
||||
if (activeChar.isInOlympiadMode())
|
||||
{
|
||||
@ -74,8 +74,8 @@ public class Unstuck implements IUserCommandHandler
|
||||
|
||||
activeChar.forceIsCasting(GameTimeController.getInstance().getGameTicks() + (unstuckTimer / GameTimeController.MILLIS_IN_TICK));
|
||||
|
||||
Skill escape = SkillData.getInstance().getSkill(2099, 1); // 5 minutes escape
|
||||
Skill GM_escape = SkillData.getInstance().getSkill(2100, 1); // 1 second escape
|
||||
final Skill escape = SkillData.getInstance().getSkill(2099, 1); // 5 minutes escape
|
||||
final Skill GM_escape = SkillData.getInstance().getSkill(2100, 1); // 1 second escape
|
||||
if (activeChar.getAccessLevel().isGm())
|
||||
{
|
||||
if (GM_escape != null)
|
||||
@ -106,9 +106,9 @@ public class Unstuck implements IUserCommandHandler
|
||||
activeChar.setTarget(activeChar);
|
||||
activeChar.disableAllSkills();
|
||||
|
||||
MagicSkillUse msk = new MagicSkillUse(activeChar, 1050, 1, unstuckTimer, 0);
|
||||
final MagicSkillUse msk = new MagicSkillUse(activeChar, 1050, 1, unstuckTimer, 0);
|
||||
Broadcast.toSelfAndKnownPlayersInRadius(activeChar, msk, 900);
|
||||
SetupGauge sg = new SetupGauge(0, unstuckTimer);
|
||||
final SetupGauge sg = new SetupGauge(0, unstuckTimer);
|
||||
activeChar.sendPacket(sg);
|
||||
// End SoE Animation section
|
||||
|
||||
|
Reference in New Issue
Block a user