Added missing final modifiers.
This commit is contained in:
@ -97,7 +97,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
{
|
||||
if (activeChar.getTarget() instanceof L2Character)
|
||||
{
|
||||
L2Character target = (L2Character) activeChar.getTarget();
|
||||
final L2Character target = (L2Character) activeChar.getTarget();
|
||||
attack(command, activeChar, target);
|
||||
}
|
||||
}
|
||||
@ -143,7 +143,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
*/
|
||||
private void showMainPage(L2PcInstance activeChar, String command)
|
||||
{
|
||||
String filename = "mobgroup.htm";
|
||||
final String filename = "mobgroup.htm";
|
||||
AdminHtml.showAdminHtml(activeChar, filename);
|
||||
}
|
||||
|
||||
@ -159,7 +159,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
activeChar.sendMessage("Incorrect command arguments.");
|
||||
return;
|
||||
}
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
if (group == null)
|
||||
{
|
||||
activeChar.sendMessage("Invalid group specified.");
|
||||
@ -181,7 +181,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
activeChar.sendMessage("Incorrect command arguments.");
|
||||
return;
|
||||
}
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
if (group == null)
|
||||
{
|
||||
activeChar.sendMessage("Invalid group specified.");
|
||||
@ -202,7 +202,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
activeChar.sendMessage("Incorrect command arguments.");
|
||||
return;
|
||||
}
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
if (group == null)
|
||||
{
|
||||
activeChar.sendMessage("Invalid group specified.");
|
||||
@ -223,7 +223,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
activeChar.sendMessage("Incorrect command arguments.");
|
||||
return;
|
||||
}
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
if (group == null)
|
||||
{
|
||||
activeChar.sendMessage("Invalid group specified.");
|
||||
@ -244,7 +244,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
activeChar.sendMessage("Incorrect command arguments.");
|
||||
return;
|
||||
}
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
if (group == null)
|
||||
{
|
||||
activeChar.sendMessage("Invalid group specified.");
|
||||
@ -261,7 +261,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
|
||||
try
|
||||
{
|
||||
String[] cmdParams = command.split(" ");
|
||||
final String[] cmdParams = command.split(" ");
|
||||
|
||||
groupId = Integer.parseInt(cmdParams[1]);
|
||||
templateId = Integer.parseInt(cmdParams[2]);
|
||||
@ -279,7 +279,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
L2NpcTemplate template = NpcData.getInstance().getTemplate(templateId);
|
||||
final L2NpcTemplate template = NpcData.getInstance().getTemplate(templateId);
|
||||
|
||||
if (template == null)
|
||||
{
|
||||
@ -287,7 +287,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup group = new MobGroup(groupId, template, mobCount);
|
||||
final MobGroup group = new MobGroup(groupId, template, mobCount);
|
||||
MobGroupTable.getInstance().addGroup(groupId, group);
|
||||
|
||||
activeChar.sendMessage("Mob group " + groupId + " created.");
|
||||
@ -307,7 +307,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
|
||||
if (group == null)
|
||||
{
|
||||
@ -334,7 +334,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
|
||||
try
|
||||
{
|
||||
String[] cmdParams = command.split(" ");
|
||||
final String[] cmdParams = command.split(" ");
|
||||
groupId = Integer.parseInt(cmdParams[1]);
|
||||
|
||||
try
|
||||
@ -355,7 +355,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
|
||||
if (group == null)
|
||||
{
|
||||
@ -391,7 +391,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
|
||||
if (group == null)
|
||||
{
|
||||
@ -419,7 +419,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
|
||||
if (group == null)
|
||||
{
|
||||
@ -445,7 +445,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
|
||||
if (group == null)
|
||||
{
|
||||
@ -472,7 +472,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
|
||||
if (group == null)
|
||||
{
|
||||
@ -516,7 +516,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
|
||||
if (group == null)
|
||||
{
|
||||
@ -524,7 +524,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup othGroup = MobGroupTable.getInstance().getGroup(othGroupId);
|
||||
final MobGroup othGroup = MobGroupTable.getInstance().getGroup(othGroupId);
|
||||
|
||||
if (othGroup == null)
|
||||
{
|
||||
@ -551,7 +551,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
|
||||
if (group == null)
|
||||
{
|
||||
@ -600,7 +600,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
final MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
|
||||
|
||||
if (group == null)
|
||||
{
|
||||
@ -613,7 +613,7 @@ public class AdminMobGroup implements IAdminCommandHandler
|
||||
|
||||
private void showGroupList(L2PcInstance activeChar)
|
||||
{
|
||||
MobGroup[] mobGroupList = MobGroupTable.getInstance().getGroups();
|
||||
final MobGroup[] mobGroupList = MobGroupTable.getInstance().getGroups();
|
||||
|
||||
activeChar.sendMessage("======= <Mob Groups> =======");
|
||||
|
||||
|
Reference in New Issue
Block a user