Admin summon command handler should use long for count.
Contributed by Index.
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user