Admin summon command handler should use long for count.
Contributed by Index.
This commit is contained in:
parent
8b11f515d0
commit
4b2456a2e2
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
public boolean useAdminCommand(String command, Player activeChar)
|
||||
{
|
||||
int id;
|
||||
int count = 1;
|
||||
long count = 1;
|
||||
final String[] data = command.split(" ");
|
||||
try
|
||||
{
|
||||
id = Integer.parseInt(data[1]);
|
||||
if (data.length > 2)
|
||||
{
|
||||
count = Integer.parseInt(data[2]);
|
||||
count = Long.parseLong(data[2]);
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
|
Loading…
Reference in New Issue
Block a user