Browse Source

BETA: Minor fix for Polymorph admin command by jurchiks.

Zoey76 13 years ago
parent
commit
7129b01ce6

+ 3 - 3
L2J_DataPack_BETA/dist/game/data/scripts/handlers/admincommandhandlers/AdminPolymorph.java

@@ -90,15 +90,15 @@ public class AdminPolymorph implements IAdminCommandHandler
 					return false;
 				}
 				
-				String[] parts = command.split(" ");
+				final String[] parts = command.split(" ");
 				if (parts.length > 1)
 				{
-					int id = Integer.parseInt(parts[1]);
 					if (Util.isDigit(parts[1]))
 					{
+						final int id = Integer.parseInt(parts[1]);
 						if (!TransformationManager.getInstance().transformPlayer(id, cha))
 						{
-							cha.sendMessage("Unknow transformation id: " + id);
+							cha.sendMessage("Unknown transformation Id: " + id);
 						}
 					}
 					else