Skip to content
Snippets Groups Projects
Commit 7129b01c authored by Zoey76's avatar Zoey76
Browse files

BETA: Minor fix for Polymorph admin command by jurchiks.

parent 9cc77abb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment