Admin summon command handler should use long for count.

Contributed by Index.
This commit is contained in:
MobiusDevelopment
2022-04-16 02:06:17 +00:00
parent 8b11f515d0
commit 4b2456a2e2
25 changed files with 50 additions and 50 deletions

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)

View File

@@ -41,14 +41,14 @@ public class AdminSummon implements IAdminCommandHandler
public boolean useAdminCommand(String command, Player activeChar) public boolean useAdminCommand(String command, Player activeChar)
{ {
int id; int id;
int count = 1; long count = 1;
final String[] data = command.split(" "); final String[] data = command.split(" ");
try try
{ {
id = Integer.parseInt(data[1]); id = Integer.parseInt(data[1]);
if (data.length > 2) if (data.length > 2)
{ {
count = Integer.parseInt(data[2]); count = Long.parseLong(data[2]);
} }
} }
catch (NumberFormatException nfe) catch (NumberFormatException nfe)