@Override
	public void run(CommandSender sender, String maincmd, String[] args)
	{
		if (sender instanceof Player && !sender.hasPermission("mobmanager.spawn"))
		{
			sender.sendMessage(ChatColor.DARK_RED + "You do not have permission to use /mm spawn");
			return;
		}
		
		if (!super.validArgs(sender, maincmd, args))
			return;
		
		Location loc = getLocation(sender, args);
		
		if (loc == null)
			return;
		
		if (loc.getChunk() == null || !loc.getChunk().isLoaded())
		{
			sender.sendMessage(ChatColor.RED + "~Can't spawn mob in unloaded chunk");
			return;
		}
		
		int count = Integer.valueOf(args[2]);
		
		if (count > 100)
		{
			sender.sendMessage(ChatColor.RED + "~Count can't be higher than 100");
			return;
		}
		
		if (args[0].equalsIgnoreCase("spawn"))
			spawn(sender, args[1], loc, count, false);
		else
			spawnset(sender, args[1], loc, count, false);
	}