Formatting

This commit is contained in:
Joseph 2013-01-09 10:17:26 -06:00 committed by Chris Ward
parent b04fa82be2
commit 2988db08ca

View File

@ -6,7 +6,6 @@ import com.earth2me.essentials.Trade;
import com.earth2me.essentials.User; import com.earth2me.essentials.User;
import com.earth2me.essentials.Util; import com.earth2me.essentials.Util;
import java.util.Locale; import java.util.Locale;
import org.bukkit.Bukkit;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.Server; import org.bukkit.Server;
@ -35,7 +34,7 @@ public class Commandspawner extends EssentialsCommand
} }
String name = args[0]; String name = args[0];
Integer delay = 0; int delay = 0;
Mob mob = null; Mob mob = null;
mob = Mob.fromName(name); mob = Mob.fromName(name);
@ -51,9 +50,10 @@ public class Commandspawner extends EssentialsCommand
{ {
throw new Exception(_("noPermToSpawnMob")); throw new Exception(_("noPermToSpawnMob"));
} }
if(args.length > 1) if (args.length > 1)
{
if (Util.isInt(args[1]))
{ {
if(Util.isInt(args[1])){
delay = Integer.parseInt(args[1]); delay = Integer.parseInt(args[1]);
} }
} }